From: Laurence Withers Newsgroups: comp.os.msdos.djgpp Subject: Re: Saving the palette! Date: Sun, 6 Sep 1998 16:19:26 +0100 Organization: IP Message-ID: References: <35F28868 DOT 1B8BBFE0 AT mail DOT bip DOT net> NNTP-Posting-Host: lwithers.demon.co.uk MIME-Version: 1.0 Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk --- Original Message --- From: Conan Time: Sun, 6 Sep 199815:04:40 >The thing is... All the colors look the same after save/load except the >first 64 ones. >And that just wired 'cos all the colors are saved within the same loop. > >The video mode is VESA2.0 640*480*256 >Is there anything special abut the first 64 colors?!??! >/Conan In that video mode, VGA only has a 6-bit sensitivity for each colour (ie. the only valid values are from 0-63). White is 63.63.63. It is possible to request an 8bit DAC, but that won't work on all video cards. Alternatively, you could use 24 or 32 bit modes, which give you 8 bits to play with. HTH, and bye for now, -- Laurence Withers, mailto:lwithers AT lwithers DOT demon DOT co DOT uk Integrated Peripherals Operating System Project Leader || OPES Project Projects' homepage is at: http://www.lwithers.demon.co.uk/ Leader