X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9b456ff08a33913d3021420c49cff52896e1513..2acac1b415376271d108659df0d15741f53f4803:/src/mac/carbon/window.cpp diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 1a23e54047..975404ea78 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -201,7 +201,6 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl RgnHandle updateRgn = NULL ; RgnHandle allocatedRgn = NULL ; wxRegion visRegion = thisWindow->MacGetVisibleRegion() ; - Rect controlBounds ; if ( cEvent.GetParameter(kEventParamRgnHandle, &updateRgn) != noErr ) { @@ -1200,7 +1199,7 @@ bool wxWindowMac::SetBackgroundColour(const wxColour& col ) wxBrush brush ; wxColour newCol(GetBackgroundColour()); - if ( newCol == wxSystemSettings::GetColour( wxSYS_COLOUR_APPWORKSPACE ) ) + if ( newCol == wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) ) brush.MacSetTheme( kThemeBrushDocumentWindowBackground ) ; else if ( newCol == wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE ) ) brush.MacSetTheme( kThemeBrushDialogBackgroundActive ) ; @@ -3436,4 +3435,4 @@ bool wxWindowMac::CanSetTransparent() wxByte wxWindowMac::GetTransparent() const { return m_macAlpha ; -} \ No newline at end of file +}