Message-ID: <20000824060250.22366.qmail@web511.mail.yahoo.com> Date: Wed, 23 Aug 2000 23:02:50 -0700 (PDT) From: Chris Amos Subject: Re: WHAT'S GOING ON!!??!?!! To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com What are you talking about? There are no Palettes in 16 bit mode. The pics are 24 bit, so shouldnt the Allegro routines automaticly convert the pic to 16 bits per pixel? --- Damian Yerrick wrote: > On Wed, 23 Aug 2000 18:04:14 -0700 (PDT), Chris Amos > wrote: > > > /* Initiate the Allegro library for use in this program */ > > allegro_init(); > > install_keyboard(); > > set_gfx_mode(GFX_AUTODETECT,640, 480,0,0); > > set_color_depth(16); > > bmp = load_bitmap("Tile1.bmp", pal); > > set_palette(pal); > > > draw_sprite(screen, bmp, 0, 0); > > You get weird colored garbage because you're not drawing with the > right palette. Also, if you're putting multiple images on one > 256-color screen, make sure they have the same palette. > > More Allegro library help can be found at the list: > http://www.talula.demon.co.uk/allegro/maillist.html > > -- > MS (n) 1. A debilitating and surprisingly widespread > affliction that renders the sufferer barely able to > perform the simplest task. 2. A disease, multiple > sclerosis (see). > > This is McAfee VirusScan. Add these two lines to your signature to > prevent the spread of signature viruses. http://www.mcafee.com/ ===== ~ Twisted Matrix (Founder of ULTRATECH) URL: http://www.stas.net/ultratech Yahoo ID: Homie_dont_play_dat, ICQ: 74628745 AOL im: TwistedMatrix __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/