From: iecheruo AT newstand DOT syr DOT edu (The Ice Man) Newsgroups: comp.os.msdos.djgpp Subject: Re: Mode 13h Date: 10 Jan 1998 21:43:37 GMT Organization: Syracuse University, Syracuse, NY (USA) Lines: 33 Message-ID: <698q29$ml9@newstand.syr.edu> References: <19980110205301 DOT PAA10209 AT ladder01 DOT news DOT aol DOT com> Reply-To: fake_iecheruo AT mailbox DOT syr DOT edu NNTP-Posting-Host: rodan.syr.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk HackerOC3 (hackeroc3 AT aol DOT com) wrote: : I am using mode 13h, and the book I am using has examples to access the video : buffer. This is what it says to do to fill the screen: : #define SCREEN_WIDTH unsigned int : #define SCREEN_HEIGHT : unsigned char far *video_buffer =(char far *)0xA0000000L; : void Fill_Screen(int value) : { : _fmemset(video_buffer,(char)value,SCREEN_WIDTH*SCREEN_HEIGHT+1); : } : I always get parse errors. I don't know what to do : HackerOC3 AT aol DOT com #define is a macro feature change #define SCREEN_WIDTH unsigned int to #define SCREEN_WIDTH 320 and #define SCREEN_HEIGHT to #define SCREEN_HEIGHT 200 Im assuming your using screen mode 13h 320x200 if so change : _fmemset(video_buffer,(char)value,SCREEN_WIDTH*SCREEN_HEIGHT+1); to _fmemset(video_buffer,(char)value,SCREEN_WIDTH*SCREEN_HEIGHT); good luck --