From 2bfd94d59c02ac26843cbd39d9456c607408ac3d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:39:41 +0000 Subject: [PATCH] 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 --- tests/graphics/colour.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/graphics/colour.cpp b/tests/graphics/colour.cpp index 40b92bbd63..b7df2cc527 100644 --- a/tests/graphics/colour.cpp +++ b/tests/graphics/colour.cpp @@ -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 );