Mail Archives: djgpp/1998/01/10/16:45:36
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
--
- Raw text -