delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/27/03:37:57

From: "Justin Szczap" <jmszczap82 AT adelphia DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro Example 15...
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <89KX4.2767$D%2.66299@news1.news.adelphia.net>
Date: Sat, 27 May 2000 06:44:20 GMT
NNTP-Posting-Host: 24.49.84.163
X-Complaints-To: abuse AT adelphia DOT net
X-Trace: news1.news.adelphia.net 959409860 24.49.84.163 (Sat, 27 May 2000 02:44:20 EDT)
NNTP-Posting-Date: Sat, 27 May 2000 02:44:20 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
 Has anyone tried out the 'example 15' that's included with Allegro? It's
meant to display a bitmap, and it gives me the same problem that I'm having
when trying to display a bitmap in my own code. It'll display and center the
bitmap perfectly, but the 'background'? is that ugly purple/pink color,
which I believe represents what should be transparent. What the heck am I
doing wrong? Here's my code...
/*** display.h ***/
void display_board()
{
 BITMAP *the_board;
 PALETTE the_board_pal;
 the_board=load_bitmap("board.bmp", the_board_pal);
 set_palette(the_board_pal);
 blit(the_board, screen, 0, 0, (SCREEN_W-the_board->w)/2,
     (SCREEN_H-the_board->h)/2, the_board->w, the_board->h);
 destroy_bitmap(the_board);
}
 ... Thanks...
- JS




- Raw text -


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