wxX11 use XColor directly, so wxX11 does not support alpha at all currently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b413eeedea
commit
2bfd94d59c
@ -99,8 +99,11 @@ void ColourTestCase::GetSetRGB()
|
||||
void ColourTestCase::FromString()
|
||||
{
|
||||
ASSERT_EQUAL_RGB( wxColour("rgb(11, 22, 33)"), 11, 22, 33 );
|
||||
// wxX11 doesn't support alpha at all currently.
|
||||
#ifndef __WXX11__
|
||||
ASSERT_EQUAL_RGBA( wxColour("rgba(11, 22, 33, 0.5)"), 11, 22, 33, 128 );
|
||||
ASSERT_EQUAL_RGBA( wxColour("rgba( 11, 22, 33, 0.5 )"), 11, 22, 33, 128 );
|
||||
#endif // __WXX11__
|
||||
|
||||
ASSERT_EQUAL_RGB( wxColour("#aabbcc"), 0xaa, 0xbb, 0xcc );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user