delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: WHAT'S GOING ON!!??!?!! |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <es49qssn32g2h38c1pm476qabajfj58uqa@4ax.com> |
References: | <20000824010414 DOT 29585 DOT qmail AT web510 DOT mail DOT yahoo DOT com> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 29 |
X-Trace: | /KDWjZ3nI4dFS+SFlVMOrIU1bW+ntHOyPydAd4iGlRWxuKPFkncnUEQMN4Y7dYZGojBFHzxEYEtG!i9/dHCK3YDN7wAlJakhJA65soySEewHIgC9I/lrXpVdoEBDFGcvr4C8e5qB1pf0HVpdRLLz0SfBl!0cxo |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Thu, 24 Aug 2000 03:17:00 GMT |
Distribution: | world |
Date: | Thu, 24 Aug 2000 03:17:00 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |