Mail Archives: djgpp/1995/11/03/13:14:16
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3028
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!newsserver.pixel.kodak.com!bloom-beacon.mit.edu!news.kei.com!news.mathworks.com!tank.news.pipex.net!pipex!oleane!in2p3.fr!swidir.switch.ch!scsing.switch.ch!news.belwue.de!News.Uni-Marburg.DE!news.th-darmstadt.de!faui0n.informatik.uni-erlangen.de!uni-erlangen.de!lrz-muenchen.de!ipp-garching.mpg.de!ipp-garching
|
From: | asc AT ipp-garching DOT mpg DOT de (asc)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: GRX Help..
|
Date: | Fri, 03 Nov 1995 14:00:21 GMT
|
Organization: | Rechenzentrum der Max-Planck-Gesellschaft in Garching
|
Lines: | 30
|
References: | <47b668$qmu AT buffnet2 DOT buffnet DOT net>
|
Reply-To: | asc AT ipp-garching DOT mpg DOT de (asc)
|
Nntp-Posting-Host: | slip154.ipp-garching.mpg.de
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
>
> GRX Help..
>
> raptor AT buffnet DOT net (Ken Liska)
> 2 Nov 1995 19:29:12 GMT
> BuffNET
>
> Newsgroups:
> comp.os.msdos.djgpp
>
> Ok, I'm using DjGpp v2-beta3 and the GRX v2. I am a little
> baffled by how the palette functions are working. I mean I do this
but
> the screen ends of being a deep gray color.
> long White;
> White = AllocCell();
> GrSetColor(White,0xff,0xff,0xff);
> GrClrearScreen(White);
>
> Can anyone help?
Well, not even Csaba Biegel can, since the GrWhite() function he
includes in his GRX library has the same problem. It simply produces
dark gray. This happens only, when I enter GrSetRGBMode(), but not when
using the adapterŽs standard colors. GrSetRGBMode explicitely sets
CLRINFO->white to CLRINFO->ncolors-1, which returns the number IŽd
expect for White (0xFF in 256 color mode). Therefor the problem IMHO
must be some error in the way a color is calculated from R,G and B
values in GrSetRGBMode as well as in GrSetColor.
Maybe someone finds the bux and fixes it, IŽm looking forward to it.
- Raw text -