delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/03/22:49:25

From: ipitythefo AT aol DOT com (IPityTheFo)
Newsgroups: comp.os.msdos.djgpp
Subject: video buffer problem
Lines: 21
Message-ID: <1998060402035100.WAA17138@ladder03.news.aol.com>
NNTP-Posting-Host: ladder03.news.aol.com
Date: 04 Jun 1998 02:03:51 GMT
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

This is the code I use to create a pointer to the video buffer:
   char far *video_buffer = (char far)0xA0000000L;
The compiler tells me that you can't convert a pointer to a char far.
Can someone help me out with that?

Also I use this to fill the screen with a certain color:
   #define SCREEN_WIDTH unsigned int
   #define SCREEN_HEIGHT
   void fill_screen(int value) {
      _fmemset(video_buffer,(char)value,SCREEN_WIDTH*SCREEN_HEIGHT+1);
   }
The compiler tells me that the _fmemset line is so badly of a formed statement
that it is impossible to compile.  Can someone help me out with that?

It may help to know that I'm using a DOS Pacific C compiler.
_______________________----------------------------------------------------
_______________________ipitythefo AT aol DOT com
_______________________ master programmer...       
_______________________
... I wish

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019