From: "Bengt Rosenberger" Newsgroups: comp.os.msdos.djgpp Subject: Palette-problem Date: Fri, 24 Apr 1998 02:30:10 +0200 Organization: Unlimited Surprise Systems, Berlin Lines: 28 Message-ID: <6home3$a6b$1@unlisys.unlisys.net> NNTP-Posting-Host: n242-107.berlin.snafu.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk When I compile this code, gcc tells me that the argument 2 from load_bitmap is of incompatible pointer type and the 1 argument from set_palete, too , but they are of PALETTE-type. What to do? #include "allegro.h" int main() { BITMAP *interface; PALETTE my_pal; allegro_init(); install_keyboard(); set_gfx_mode(GFX_VESA1, 800, 600, 0, 0); interface = load_bitmap("Int256.bmp", my_pal); set_palette(my_pal); blit(interface, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H); while(!keypressed()) { } destroy_bitmap(interface); } Please mail me at rosenberger AT snafu DOT de