www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/18/00:00:36

Message-ID: <350F532D.C6DBA305@pangea.ca>
From: Lee <jag*NOSPAM*@pangea.ca>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: need help with d_bitmap_proc (Allegro)
Lines: 24
Date: Wed, 18 Mar 1998 04:51:16 GMT
NNTP-Posting-Host: user040.videonwave.com
NNTP-Posting-Date: Tue, 17 Mar 1998 22:51:16 CST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am having trouble with d_bitmap_proc.  From the documentation, :

**
int d_bitmap_proc(int msg, DIALOG *d, int c);
   This draws a bitmap onto the screen, which should be pointed to by
the
   dp field.
**

However, the following code produces the error:
initializer element for `main_dialog[5].dp' is not constant

*code*
DIALOG main_dialog[] =
{
  /* (dialog proc)     (x)   (y)   (w)   (h)   (fg)  (bg)  (key)
(flags)     (d1)           (d2)     (dp) */
...some stuff....
  { d_bitmap_proc,     0,    0,    0,    0,    0,    0,     0,
0,          0,             0,       mydat[LOGO].dat},
...some other stuff
};
*end code*

Basically what I am trying to do here is put a bitmap in the background
of my GUI.  Any help would be greatly appreciated, as I am using Allegro
to do my programming project, and so far it has been working well
(except for this :( )

Lee
- reply by removing *NOSPAM* from email address

- Raw text -


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