Mail Archives: djgpp/1999/01/01/14:13:55
Message-Id: | <199901011912.TAA21498@remus.clara.net>
|
From: | "Arthur" <arfa AT clara DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | RE: bitmap problem
|
Date: | Fri, 1 Jan 1999 19:10:57 -0000
|
X-Priority: | 3 (Normal)
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0
|
Importance: | Normal
|
In-Reply-To: | <368C2FF1.6A91E119@alpha.delta.edu>
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
Please don't post in HTML format.
DOS doesn't particularly like filenames beginning with a number. This could
be your problem.
James Arthur - jaa AT arfa DOT clara DOT net
http://www.jado.org/users/arfa/
ICQ#15054819
-----Original Message-----
From: mdkris AT alpha DOT delta DOT edu [mailto:mdkris AT alpha DOT delta DOT edu]
Sent: 01 January 1999 02:16
To: djgpp AT delorie DOT com
Subject: bitmap problem
I am trying to add some a simple bitmap to a simple game I wrote.
I am using Allegro but it doesn't seem to work. The function works
fine if I compile it as it's own program but when my program calls it it
says the bmp isn't found.
int pcx()
{
BITMAP *the_image;
PALLETE the_pallete;
allegro_init();
/* Read the bitmap */
the_image = load_bitmap("1.bmp", the_pallete);
if(!the_image)
{
printf("1.bmp not found!");
exit(1);
}
set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
/* Select the bitmap pallete */
set_pallete(the_pallete);
/* blit the image onto the screen */
blit(the_image, screen, 0, 0, 0, 0, 320, 200);
delay(100);
destroy_bitmap(the_image);
}
Any suggestions would help. Also if you have a function you know works lemme in on it. Thanks
- Raw text -