Mail Archives: djgpp/1998/08/18/11:15:37
From: | Endlisnis <s257m AT unb DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: 24bit color
|
Date: | Tue, 18 Aug 1998 00:32:08 -0300
|
Organization: | NBTel Internet
|
Lines: | 24
|
Message-ID: | <35D8F5B8.72DA89A4@unb.ca>
|
References: | <6raoic$7ri$1 AT nnrp3 DOT snfc21 DOT pbi DOT net>
|
NNTP-Posting-Host: | fctnts11c01.nbnet.nb.ca
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Keith Stropus wrote:
> Hello! I have a question. I got a demo program the demonstrates how to use
> VESA VBE. I modified it to use 800x600x24. The original program used
> 640x480x8, and used the rgb tables. Now I cannot seem to figure out how the
> heck to use the 24bit color. No matter what I do, I can only access 256
> colors at a time. I have no experience in 24bit color programming. I was
> under the impression that 24bit color meant that you could display 16million
> colors on the screen at once. Can anyone tell me how to do this? I would
> really appreciate it.
> thanks...
First make sure you are really in a 24-bit mode, (mode 0x115, i think), then you
just put RGB values into Video Ram instead of a color index (like in 256 mode).
BTW, what 'rgb' tables are you speaking of?
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -