Re: Weird colors

"[email protected]" <[email protected]>
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
Hi Fer,

I took a look at the source code.
It looks in getColorAttr/getCOLORREF that the attribute colors are kept as three bytes as in one of the next lines:
#	sysnr	\0
Reg	Green	Blue

When the first byte is a # then the color is expected to be a system color else a RGB color.
But 35 is the value for # so the RGB value 35 27 229 looks like "#" 27 229 and is misinterpreted as a system color.
As for now don't use 35 but 34 or 36 :)

Regards,
Fred.



--- In [email protected], "Fer" <fmstoopman@...> wrote:
>
> 
> 
> 
> 
> 
> > I did not test anything (a little busy...) but did you try something with deeptrans of or var notrans?
> 
> 
> Hi Fred,
> 
> 
> When translation is set off the rgb value is read as
> the variable's name which is no color value. So that
> doesn't work. Besides that, I used the same method to
> draw rectangles on an image and those show up correct.
> I also tried to set the attr color directly to rgb 
> values without using variables. No luck.
> Thanks anyway for your feedback.
> However I'm curious if the wrong colors also show up
> on your PC or anyone else's PC specially if it's XP.
> 
> 
> Fer
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gui4cli/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gui4cli/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.