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:
@@ -151,7 +151,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
if( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ))
|
if( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ))
|
||||||
{
|
{
|
||||||
if ( ((wxControl*)parent)->GetMacControl() ) {
|
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 )
|
if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress )
|
||||||
{
|
{
|
||||||
DrawThemeTabPane ( &rect, kThemeStateActive);
|
DrawThemeTabPane ( &rect, kThemeStateActive);
|
||||||
|
@@ -151,7 +151,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
if( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ))
|
if( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ))
|
||||||
{
|
{
|
||||||
if ( ((wxControl*)parent)->GetMacControl() ) {
|
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 )
|
if ( DrawThemeTabPane != (void*)kUnresolvedCFragSymbolAddress )
|
||||||
{
|
{
|
||||||
DrawThemeTabPane ( &rect, kThemeStateActive);
|
DrawThemeTabPane ( &rect, kThemeStateActive);
|
||||||
|
Reference in New Issue
Block a user