delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/12/21:32:24

From: "Lark" <rlark DOT at DOT mbhs DOT dot DOT edu AT delorie DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: palette problem.
Date: Fri, 12 Mar 1999 20:53:21 -0800
Organization: MindSpring Enterprises
Lines: 20
Message-ID: <7ccgis$lf3$1@camel19.mindspring.com>
NNTP-Posting-Host: d1.8a.2d.60
X-Server-Date: 13 Mar 1999 01:55:40 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

When I try to load a bitmap from a bmp file using load_bmp, I have a lot of
trouble.

The actual lines are as follows:
picture = load_bmp("random.bmp", pal);
set_palette(pal);
blit(picture, screen, 0, 0, 300, 300, 100, 100);

The graphics mode as already been succesfully set to 640 by 480.  These
lines compile fine, but give me the error
"Call frame traceback:"
" at load_bmp+369"

This is very frustrating.  I am just copying source out of the documentation
and it is not working.  Can anyone see anything that I am doing wrong?  I
called allegro_init(), included allegro.h, I'm linking w/ lalleg, etc..  The
worst part is that I got it to work before, changed something, and can't get
it back!  Thanks for any help.


- Raw text -


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