nanogui: problem with transparent color


Previous by date: 6 Apr 2006 22:17:49 +0100 Re: problem with transparent color, Jordan Crouse
Next by date: 6 Apr 2006 22:17:49 +0100 Can nano-X client-app and server-app run in different pc?, xiang liu
Previous in thread: 6 Apr 2006 22:17:49 +0100 Re: problem with transparent color, Jordan Crouse
Next in thread:

Subject: Re: [nanogui] Re: problem with transparent color
From: "Greg Haerr" ####@####.####
Date: 6 Apr 2006 22:17:49 +0100
Message-Id: <0df801c659bf$83e3fc60$6401a8c0@winXP>

: Are you running on a 16 bit system or something?  There are a few things
: confusing me.  First, on a 32 bit system, 0x00FFFFFF can't possibly be
: negative, let alone be -1.  Secondly, the latest CVS shows the transcolor
: as 0x01000000, which also cannot possibly be -1.

No, this problem appeared after the contribution for hardware
alpha channel support.  The MWRGB macro effectively
changed to MWARGB, with the A (hi byte) normally defaulting
to full alpha = 255.  This caused WHITE to become -1,
which matched the old transparent color -1.  In the CVS
version, this has been fixed, and transcolor is now 0x01000000.

The ARGB colors are always specified as 32 bits, regardless
of the framebuffer color size.

Regards,

Greg



: > I found a problem that when I load images with the RGB color 255,255,255
: > it will translate it as transparent color, because the
: > PMWIMAGEHDR::transcolor
: > is -1.


Previous by date: 6 Apr 2006 22:17:49 +0100 Re: problem with transparent color, Jordan Crouse
Next by date: 6 Apr 2006 22:17:49 +0100 Can nano-X client-app and server-app run in different pc?, xiang liu
Previous in thread: 6 Apr 2006 22:17:49 +0100 Re: problem with transparent color, Jordan Crouse
Next in thread:


Powered by ezmlm-browse 0.20.