delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/11/16:01:01

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: clear_to_color()
Date: 11 Oct 1997 17:22:51 GMT
Organization: Oxford University, England
Message-ID: <61oclb$li3$2@news.ox.ac.uk>
References: <61oa8b$9vg$1 AT news DOT interlog DOT com>
NNTP-Posting-Host: sable.ox.ac.uk
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gautam N. Lad (gautam AT interlog DOT com) wrote:
: Ok, first of all, is the 'screen' a BITMAP *?  When I say screen, I mean what
: ever is written to it, goes to the screen (eg. line(screen,10,10,400,39,5); ).

Yes, it is. You can only use it when you're in a graphics mode though.

: When I did this:

: clear_to_color(screen,WHITE);

: I get a GPF.  Why?  Isn't a screen a BITMAP *?

Did you set_gfx_mode first? Did the call to set_gfx_mode succeed? I expect
one of those is your problem. :)

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


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