www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/25/11:54:18

Date: Sat, 25 Dec 1999 16:30:35 +0100 (MET)
From: Tobias =?ISO-8859-1?Q?Ro=DFmann?= <t DOT rossmann AT gmx DOT at>
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Subject: Re: A desperate cry for help. :-)
X-Authenticated-Sender: #0002566928 AT gmx DOT net
X-Authenticated-IP: [212.185.249.183]
Message-ID: <6242.946135835@www7.gmx.net>
X-Mailer: WWW-Mail 1.5 (Global Message Exchange)
X-Flags: 0001
Reply-To: djgpp AT delorie DOT com

There are two errors in the code you posted.

* You called clear before allegro_init, this won't work.

* That call used BITMAP* back before it pointed to a bitmap.
(The load_bitmap call creates one, before that, back's value is
undefined.)

BTW, there is really no need to clear a bitmap if you load it from a file.
Simply remove the clear(back); line and it should work.

-- 
Sent through Global Message Exchange - http://www.gmx.net

- Raw text -


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