From dd2b41b6e9ac3fb5122e76af46f2818b97bc139c Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 4 Dec 2001 14:02:59 +0000 Subject: [PATCH] MacOS X was having a coordinate rollover for a rectangle when painting the pane background git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/stattext.cpp | 2 +- src/mac/stattext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index d364a2c5be..8f78cc60ff 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -151,7 +151,7 @@ void wxStaticText::OnDraw( wxDC &dc ) if( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) )) { if ( ((wxControl*)parent)->GetMacControl() ) { - Rect rect = { -32767 , -32767 , 32767 , 32767 } ; + Rect rect = { -10000 , -10000 , 10000 , 10000 } ; // MacOS X was having a coord rollover if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress ) { DrawThemeTabPane ( &rect, kThemeStateActive); diff --git a/src/mac/stattext.cpp b/src/mac/stattext.cpp index d364a2c5be..8f78cc60ff 100644 --- a/src/mac/stattext.cpp +++ b/src/mac/stattext.cpp @@ -151,7 +151,7 @@ void wxStaticText::OnDraw( wxDC &dc ) if( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) )) { if ( ((wxControl*)parent)->GetMacControl() ) { - Rect rect = { -32767 , -32767 , 32767 , 32767 } ; + Rect rect = { -10000 , -10000 , 10000 , 10000 } ; // MacOS X was having a coord rollover if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress ) { DrawThemeTabPane ( &rect, kThemeStateActive); -- 2.45.2