nanogui: GrSetGCForeground
Subject:
Re: [nanogui] GrSetGCForeground
From:
"Leah Burstein" ####@####.####
Date:
7 Jun 2001 19:54:15 -0000
Message-Id: <004c01c0ef8c$3e506550$7001010a@homeGopher.com>
It took some time to figure out about display...
The server prints:
Visual Class: True Color(4)
depth: 8
bits_per_rgb:8
map_entries: 8
Colormap: 0x21
We could get some (random) colors, but not with RGB, only straightly sending
hexa values. And we could not figure the pattern. For example, some kind of
red = 17a6b0, yellow = 3f52f0, green = 794eb0, blue = c1c960. White is
ffffff, as expected. What do you think?
Thanks, Leah.
----- Original Message -----
From: Gary James ####@####.####
To: Leah Burstein ####@####.####
Cc: NanoGui ####@####.####
Sent: Tuesday, May 29, 2001 7:00 PM
Subject: Re: [nanogui] GrSetGCForeground
> > What can be the reason that after GrSetGCForeground (gc, RED); in
> > HelloWorld Demo from "Getting Started" the text shows up as Black on
> > White?
>
> Hmmm, I don't know...
> Do any other colors work? Try LTRED, LTBLUE, LTGREEN.
>
> Does the line:
> #define MWINCLUDECOLORS
> preceed the line:
> #include "microwin/nano-X.h"
>
> You could try to specify the color directly this way:
> GrSetGCForeground (gc, MWRGB(128,0,0));
> (but that really should not make any difference)
>
> What type of display are you using?
>
>
> Gary James
> ####@####.####
> http://home.twcny.rr.com/embedded/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>