Fix build with wxUSE_CAIRO==1 under wxMSW/wxOSX
'bmpSource' is declared later but we can check original bitmap 'bmp' for 'alpha flag' instead because 'bmpSource' is just a non-const copy of 'bmp'.
This commit is contained in:
@@ -1493,7 +1493,7 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm
|
|||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXOSX__)
|
#if defined(__WXMSW__) || defined(__WXOSX__)
|
||||||
// Under MSW and OSX we can have 32 bpp xRGB bitmaps (without alpha).
|
// Under MSW and OSX we can have 32 bpp xRGB bitmaps (without alpha).
|
||||||
const bool hasAlpha = bmpSource.HasAlpha();
|
const bool hasAlpha = bmp.HasAlpha();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cairo_format_t bufferFormat =
|
cairo_format_t bufferFormat =
|
||||||
|
Reference in New Issue
Block a user