delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/09/22:44:55

From: genocide AT praxis DOT net (GENOCiDE)
Newsgroups: comp.os.msdos.djgpp
Subject: Retrieving VESA Modes in DJGPP -- HELP!
Date: Thu, 09 Jan 1997 20:40:57 GMT
Organization: Praxis Information Group
Lines: 23
Message-ID: <32d55634.1506449@news.praxis.net>
NNTP-Posting-Host: ptp79.praxis.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ok, in my struct, there is a pounter called VideoModePtr;

struct VbeInfoBlock {
   ....
   unsigned *VideoModePtr;
   ....
};

I should be able to retrieve all the video modes by using:

VbeInfoBlock vbeinfo;
unsigned *p;
for (p=vbeinfo.VideoModePtr; *p != (unsigned) -1; p++) {
   printf("Mode: 0x%x\n", *p);
}

this works under regular ANSI C, why doesn't work here? is it because
of protected mode?  Please help me!

Thanks.....
-GENOCiDE

genocide AT praxis DOT net

- Raw text -


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