delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/06/21:18:27

From: Chris Weaves <wd823095 AT stmail DOT staffs DOT ac DOT uk>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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..




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019