delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: palette stll doesnt work.. |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <d8atis8sh86p96jtl3otdhasj46dv9gv64@4ax.com> |
References: | <heLW4.9282$Za1 DOT 144230 AT newsc DOT telia DOT net> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 35 |
X-Trace: | /bNDCz92VOgBhnoNpVXZtUSjDELqOWs4JZcRYTMNC9VlyzZL0QhqKI9Tk2XLS8v/hw5EfyR8aYaQ!2Pvm7U829mZOfP6Xf6iUn29lUCZ4957yUWLY696hxuVHuTr7TnBlmsLME9yjjWocC9Xfeh/+xqNw!RSWFpT8= |
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: | Fri, 26 May 2000 16:42:40 GMT |
Distribution: | world |
Date: | Fri, 26 May 2000 16:42:40 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Wed, 24 May 2000 07:09:01 GMT, "Fredrik Persson" <irnman AT rocketmail DOT com> wrote: >Hi i tried to set_pelette after loading the bitmap but it still just returns >a black screen.. > >{ >allegro_init(); >install_keyboard(); >set_gfx_mode(GFX_VGA, 320, 200, 0, 0); >PALETTE p; >screen=load_bitmap("drop.bmp",p); You can't just set the "screen" variable to a bitmap. >set_palette(p); >readkey(); >allegro_exit(); >} You have to blit a bitmap to the screen, using blit() or draw_sprite(). Try doing this: 1. load the bitmap (into your own BITMAP *) 2. set the palette 3. blit the bitmap to screen -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html 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 |