From: csantill AT lausd DOT k12 DOT ca DOT us Message-ID: <33C7FE06.6CAC@lausd.k12.ca.us> Date: Sat, 12 Jul 1997 14:58:30 -0700 MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: FAQ is useless when it comes to Mode13h Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk from: csantill AT lausd DOT k12 DOT ca DOT us For some odd reason I am unable to a simple fill_screen timing routine for mode 13h. I tried what the FAQ suggests(about mode 13h) & I get no results. It seem to me that it would be as simple as writing a put_pixel routine then running a few for-loops. I'm able to get to run in a single loop w/rand() used for the arguments but not standard declared variables. All I see when try Brennan's, the FAQ's, Matt Reiferson's, & others on the mailing list suggestions is a blank screen. I'm gonna write a simple pseudo-code description of what I want to do & I'll somebody gets back to me. By the way I have a Trident ET???? & a Pent120 w/Win95(I love DOS-mode alot more) but that shouldn't make a difference. -------F_P_S.C--------------- // Include what ever files are necessary like stdio, go32 or dpmi, pc.h, time.h // Initialize vars like a buffer or descriptor to 0xA000(real mode mem) // Declare functions like Putpix,Set13h,Set03h // Declare main int main(void) { int x,y,c1; char colour; // set mode13h // Get start time for(c1=0; c1==510; c1=c1+2) { colour=c1/2; // because you cant do a for(colour=0;colour==255;c++) because you // get an infinite loop for(y=0;y==199;y++) for(x=0;x==319;x++) putpix(x,y,c); } // get end time // set back to text mode // compare times & print results printf("FRAMES PER SEC = %d", (TIME_2-TIME_1)/256)); return 0 } A side-effect of this program should be that you will see all 256 colors on the screen