diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 2fbb7dd2f6..9915e71354 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -216,6 +216,7 @@ PicHandle wxMacCreatePicHandle( const wxBitmap &bmp ) GWorldPtr monoworld ; clipRgn = NewRgn() ; OSStatus err = NewGWorld( &monoworld , 1 , &rect , NULL , NULL , 0 ) ; + verify_noerr(err) ; LockPixels( GetGWorldPixMap( monoworld ) ) ; LockPixels( GetGWorldPixMap( mask ) ) ; SetGWorld( monoworld , NULL ) ; diff --git a/src/mac/carbon/renderer.cpp b/src/mac/carbon/renderer.cpp index a739a49c57..685b8e1a68 100644 --- a/src/mac/carbon/renderer.cpp +++ b/src/mac/carbon/renderer.cpp @@ -135,8 +135,6 @@ wxRendererMac::DrawHeaderButton(wxWindow *win, const wxRect& rect, int flags) { - const int CORNER = 1; - const wxCoord x = rect.x-1, y = rect.y-1, w = rect.width,