Mail Archives: djgpp/1997/06/30/15:33:44
From: | Larry Swanson <laswanson AT mwci DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | memcpy after djgpp nearptr enable//VESA 2.0 double buffer problem
|
Date: | Mon, 30 Jun 1997 11:10:27 -0500
|
Organization: | MidWest Communications, Inc.
|
Lines: | 25
|
Message-ID: | <33B7DA72.DDF8E94E@mwci.net>
|
NNTP-Posting-Host: | dial-50.man.mwci.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm kind of embarassed to admit this, but I'm having trouble getting a
double buffer working.
//This is my
code------------------------------------------------------------------------->
void ShowBuffer(){
__djgpp_nearptr_enable();
memcpy(video,DoubleBuffer,640*480*2);
__djgpp_nearptr_disable();
}//---------------------------------------------------------------------------------------->
/*----------------------------------------------------------------------------------------->
* In the above code "video" is the address of the linear frame buffer
obtained from VESA 2.0 plus
*__djgpp_conventional_base. DoubleBuffer is a short * obtained by
* DoubleBuffer=(short*)malloc(640*480*2);
*------------------------------------------------------------------------------------------>*/
I don't know why this doesn't work and would I appreciate a good kick in
the butt if I have made some stupid assumption somewhere. ALSO I am
willing to share my VESA 2 mode setting code with anyone who wants it.
- Raw text -