Article View: gnu.gcc.help
Article #50752Help with IBM-PC VGA Graphics GrSetmode()
From: Patricia B. Henry
Date: Thu, 19 Aug 1993 20:06
Date: Thu, 19 Aug 1993 20:06
25 lines
1325 bytes
1325 bytes
Help! When I do GrSetmode(), nothing happens. It stays in text mode.
My environment variable GO32 is set thusly:
set GO32=driver d:/gnu/gcc/drivers/tseng4k.grd gw 1024 gh 768
I do have a Tseng 4000 video chip, and have used 1024 x 768 mode in DOS
and Windows apps.
Here's my test program.
#include <graphics.h>
void main(void)
{
int i;
printf("%ld\t%ld\n",GrMaxX(),GrMaxY());
/* GrSetMode(GR_320_200_graphics); */
GrSetMode(GR_default_graphics);
/* GrLine(0,0,GrMaxX(),GrMaxY(),1); */
printf("%ld\t%ld\n",GrMaxX(),GrMaxY());
GrLine(0,0,100,100,1);
getkey();
GrSetMode(GR_default_text);
}
Technical Details
Message-ID:
<250mgm$26a@news.u.washington.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!news.clark.edu!netnews.nwnet.net!news.u.washington.edu!stein.u.washington.edu!bilgeoidShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3df80a9384ef50bf,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-19 13:16:01 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!news.clark.edu!netnews.nwnet.net!news.u.washington.edu!stein.u.washington.edu!bilgeoid From: bilgeoid@stein.u.washington.edu (Patricia B. Henry) Newsgroups: gnu.gcc.help Subject: Help with IBM-PC VGA Graphics GrSetmode() Date: 19 Aug 1993 20:06:46 GMT Organization: University of Washington, Seattle Lines: 25 Distribution: usa Message-ID: <250mgm$26a@news.u.washington.edu> NNTP-Posting-Host: stein.u.washington.edu