delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1248 |
Path: | news-dnh.mv.net!mv!news.sprintlink.net!news.bluesky.net!news.mathworks.com!news.duke.edu!godot.cc.duq.edu!nntp.club.cc.cmu.edu!cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!news.sesqui.net!uuneo.neosoft.com!news!sandmann |
From: | Charles Sandmann <sandmann AT praline DOT no DOT NeoSoft DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: VESA Linear Mode? |
Date: | Sun, 30 Jul 1995 11:29:58 CDT |
Organization: | NeoSoft Internet Services +1 713 968 5800 |
Lines: | 10 |
References: | <3ve4h7$9kh AT newshound DOT uidaho DOT edu> |
Reply-To: | sandmann AT clio DOT rice DOT edu |
Nntp-Posting-Host: | praline.no.neosoft.com |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
> Is it possible to get a pointer to the VESA 2.0 linear frame buffer in > DJGPP? When I start up UNIVBE, it says something to the effect that a > linear buffer is at 78 megabytes. Do I just call the DPMI fuction to get > the offset of an absolute address, and ask for 78 * 1M? Or is there > something more difficult to do? You would need to call the map physical function call, find the virtual address, set up a selector to point to it, then use the farptr functions. Alternatively, in V2, if supported by your DPMI, you could map the device into a malloced buffer or use the <sys/nearptr.h> function to access the buffer.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |