delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/30/01:15:06

From: "Denis Lamarche" <brainwav AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro GUI
Lines: 16
Organization: POPM
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: <xzPO4.275298$Hq3.6892761@news2.rdc1.on.home.com>
Date: Sun, 30 Apr 2000 05:32:13 GMT
NNTP-Posting-Host: 24.114.175.246
X-Complaints-To: abuse AT home DOT net
X-Trace: news2.rdc1.on.home.com 957072733 24.114.175.246 (Sat, 29 Apr 2000 22:32:13 PDT)
NNTP-Posting-Date: Sat, 29 Apr 2000 22:32:13 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Has anyone ever have any success with the d_bitmap_proc in Allegro's GUI
routines?  I've been trying everything to get a bmp to pop-up on the screen.
I load the bitmap like this:

BITMAP *bmp;
PALETTE pal;
bmp=load_bitmap("mypic.bmp", pal);

I know that it is being loaded cause I blit it right after.
My dialog works cause I can get buttons and lists.

I set the dialog for the bitmap to this:  x=0 y=0 w=bmp->w  h=bmp->h dp=bmp

This should work right?


- Raw text -


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