From 9954f65067822d9d757516abeff877bbbd60374d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 20 Feb 2005 16:26:10 +0000 Subject: [PATCH] cleanup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/bitmap.cpp | 1 + src/mac/carbon/renderer.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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,