delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/10/16:01:21

From: hackeroc3 AT aol DOT com (HackerOC3)
Newsgroups: comp.os.msdos.djgpp
Subject: Mode 13h
Date: 10 Jan 1998 20:53:21 GMT
Lines: 22
Message-ID: <19980110205301.PAA10209@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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);

}

dos.h, conio.h, stdio.h, are #included


I always get parse errors.  I don't know what to do, and I need to get this
done fast.  Please help!

HackerOC3 AT aol DOT com

- Raw text -


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