__WXWINDOWS__ does not mean __WXMSW__
Misuse of __WXWINDOWS__ for checking the presence of Windows. The correct macro is __WINDOWS__ or __WXMSW__ in GUI programs. __WXWINDOWS__ is always set, on all platforms.
This commit is contained in:
parent
658cc8fd96
commit
73fb050b6d
|
@ -75,7 +75,7 @@ wxImage createBlankImage( int size )
|
|||
for( int x = 0; x < size; ++x )
|
||||
image.SetAlpha( x, y, wxIMAGE_ALPHA_TRANSPARENT );
|
||||
|
||||
#ifdef __WXWINDOWS__
|
||||
#ifdef __WXMSW__
|
||||
// wxWidgets on Windows chokes on an empty fully transparent bitmap and draws it
|
||||
// as a black box
|
||||
image.SetRGB( size / 2, size / 2, 128, 128, 128 );
|
||||
|
|
Loading…
Reference in New Issue