X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f73c398d5bb0d820520dde635c712b8b7c66634..6258f9d978f9794820ad0a051994d8aad7c5c477:/src/mac/carbon/dcclient.cpp diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 2ec91c4760..7729ec0dbb 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -226,6 +226,7 @@ wxBitmap wxWindowDC::DoGetAsBitmap(const wxRect *subrect) const wxBitmap bmp = wxBitmap(width, height, 32); wxAlphaPixelData pixData(bmp, wxPoint(0,0), wxSize(width, height)); + pixData.UseAlpha(); wxAlphaPixelData::Iterator p(pixData); for (int y=0; yGetClientAreaOrigin() ; m_window->GetClientSize( &m_width , &m_height); SetDeviceOrigin( origin.x, origin.y ); @@ -265,6 +267,7 @@ wxClientDC::wxClientDC(wxWindow *window) : #else wxClientDC::wxClientDC(wxWindow *window) { + wxCHECK_RET( window, _T("invalid window in wxClientDC") ); m_window = window ; wxTopLevelWindowMac* rootwindow = window->MacGetTopLevelWindow() ; if (!rootwindow)