delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/24/02:36:46

Message-ID: <20000824060250.22366.qmail@web511.mail.yahoo.com>
Date: Wed, 23 Aug 2000 23:02:50 -0700 (PDT)
From: Chris Amos <homie_dont_play_dat AT yahoo DOT com>
Subject: Re: WHAT'S GOING ON!!??!?!!
To: djgpp AT delorie DOT com
MIME-Version: 1.0
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 <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:
> On Wed, 23 Aug 2000 18:04:14 -0700 (PDT), Chris Amos
> <homie_dont_play_dat AT yahoo DOT com> 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/

- Raw text -


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