X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6212a0cb7e6285f62198a9411d91bbe8dc06e60..7be740a3fdba6e7203bd82c1674f48207dc00eed:/src/mgl/window.cpp diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 275d2e801e..f9a1505ff3 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -460,7 +460,6 @@ static ibool MGLAPI wxWindowKeybHandler(window_t *wnd, event_t *e) event.SetEventObject(win); event.SetTimestamp(e->when); event.m_keyCode = wxScanToKeyCode(e, true); - event.m_scanCode = 0; // not used by wx at all event.m_x = where.x; event.m_y = where.y; event.m_shiftDown = ( e->modifiers & EVT_SHIFTKEY ) != 0; @@ -1080,10 +1079,11 @@ int wxWindowMGL::GetCharWidth() const return dc.GetCharWidth(); } -void wxWindowMGL::GetTextExtent(const wxString& string, - int *x, int *y, - int *descent, int *externalLeading, - const wxFont *theFont) const +void wxWindowMGL::DoGetTextExtent(const wxString& string, + int *x, int *y, + int *descent, + int *externalLeading, + const wxFont *theFont) const { wxScreenDC dc; if (!theFont) @@ -1140,7 +1140,7 @@ void wxWindowMGL::HandlePaint(MGLDevCtx *dc) return; } -#ifdef __WXDEBUG__ +#if wxDEBUG_LEVEL >= 2 // FIXME_MGL -- debugging stuff, to be removed! static int debugPaintEvents = -1; if ( debugPaintEvents == -1 ) @@ -1151,7 +1151,7 @@ void wxWindowMGL::HandlePaint(MGLDevCtx *dc) dc->fillRect(-1000,-1000,2000,2000); wxMilliSleep(50); } -#endif +#endif // wxDEBUG_LEVEL >= 2 MGLRegion clip; dc->getClipRegion(clip);