From: Jason Hood Newsgroups: comp.os.msdos.djgpp Subject: Re: VGA DAC programming Date: Sun, 12 Jan 2003 13:53:49 +1000 Lines: 20 Message-ID: <3E20E6CD.470D12B3@yahoo.com.au> References: <10780N882 AT web2news DOT com> NNTP-Posting-Host: roc-56k-132.tpgi.com.au (202.7.180.132) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1042343634 19552882 202.7.180.132 (16 [148584]) X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: en,pdf To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Joel_S wrote: > > I just ran into a problem that I've never had before trying to alter the > palettes in screen mode 0x12. I can do this just fine using a VBDOS > compiler (QuickBasic compatible) but using DJGPP, or even the real mode > Turbo C++ 3.0 not all of the colors from 0 to 8 can be changed, and none > of the colors from 9 to 15 can be changed at all. > Here's a simple program that's supposed to > 1) Switch to VGA mode 0x12 > 2) Change the color 12 to puple. > 3) Draw a line using the color 12. [snip code] I also tried in Win98SE, with the same effect (ie. red, not purple). Using mode 0x13 does change color, but that's not what you want. The video function to change the DAC also does not work (0x1010). Would it be possible to use color 13, which is purple (technically magenta) by default? Jason.