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
This commit is contained in:
Stefan Csomor
2001-12-04 14:02:59 +00:00
parent 269c86d089
commit dd2b41b6e9
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);