www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/01/17:06:35

Message-ID: <002f01be3637$626f11e0$e0f8c6c3@johans-dator>
From: "Johan Henriksson" <johan DOT he AT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: bitmap problem
Date: Sat, 2 Jan 1999 10:42:12 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

from Johan Henriksson, Sweden    HTTP://come.to/jhewok  |
Primary mail: johan DOT he AT telia DOT com                  #UIN 12035895
Second: jhe75 AT hotmail DOT com    Third: johan_he AT yahoo DOT com
Leadprogrammer and FX-specialist at Real software
http://come.to/real_software
*************************************************************************
-----Original Message-----
From: Arthur <arfa AT clara DOT net>
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Friday, January 01, 1999 8:49 PM
Subject: RE: bitmap problem


>Please don't post in HTML format.
>
>DOS doesn't particularly like filenames beginning with a number. This could
>be your problem.


Then my game is in trouble.
1.pcx
2.pcx
3.pcx
4.pcx
.
.
.
.


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


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