| 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 problem |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <6m3mvs4t59jf4i41hee0u738uf9117qh09@4ax.com> |
| References: | <000901c040c3$ce58cb60$5b7536ca AT a> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 23 |
| X-Trace: | /Kp2lu41Ofey4D0nUT9V1vFX76THC2+o5PHNISqenbtWd0dPCEEIvJFw0LMb1b7XoNxJTN99T7nr!xdfqw7PIC9b0t2ilyUdwkZ0NjESMYmiPs4uxKpYS26ff6H2V5dUW2NtFjjJxphzMfi9bYrjVsijh!IFuCSg== |
| 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: | Sat, 28 Oct 2000 17:37:35 GMT |
| Distribution: | world |
| Date: | Sat, 28 Oct 2000 17:37:35 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Sat, 28 Oct 2000 15:15:27 +0530, "Siddhu." <siddhu AT loveable DOT com> wrote: >My interface uses GRAY , BLACK, WHITE etc shades which are taken >from the deafult palette. when the image is loaded i also have to >load its palette. This will change the interface colors too , >like the buttons, menus. > >How do ppl normally get around this problem. How do i preserve my >default palette and also load the palete of the BMP file. Do what NeoPaint for DOS does: find the closest color _in the BMP file's palette_ for your interface color. For example, if your paint program uses the Allegro library, you can use makecol() for this and cache the result whenever you change palettes. -- <O ( \ GNOME vs. KDE: the game! X http://pineight.8m.com/nes.htm 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 |