__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:
John Beard 2019-01-08 17:50:06 +00:00 committed by Wayne Stambaugh
parent 658cc8fd96
commit 73fb050b6d
1 changed files with 1 additions and 1 deletions

View File

@ -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 );