From: Chris Weaves Newsgroups: comp.os.msdos.djgpp Subject: How do I set a viewport?Please.. Date: Thu, 06 Nov 1997 18:37:07 +0000 Organization: Staffordshire University Lines: 19 Message-ID: <34620E52.5688EB87@cr10m.staffs.ac.uk> NNTP-Posting-Host: mmg.soc.staffs.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello there, I have one question.. I am using the grx20.h graphics routines. I set my display with the GrSetMode() function which gives me high resolution graphics. I am familiar with Borland graphics, in Borland I can set a viewport with the command: setviewport(x1, y1, x2, y2); which will give me an area of the screen which to display graphics... Do you know how I can do the same in DJGPP? e.g. how can I setup a viewport with the co-ordinates: 0, 0, 400, 300 (Top half of the screen in 800x600). Thanks for your time, Christian..