X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66858adfc41bd8b795fa5a7bab7c51bc2f54b2af..597a3d06bf4ec87c5298bbd01d37ba5306ea33f4:/src/mgl/window.cpp diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 36baf4f2cb..562756b248 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -129,7 +129,8 @@ static void wxCaptureScreenshot(bool activeWindowOnly) g_displayDC->savePNGFromDC(screenshot.mb_str(), r.x, r. y, r.x+r.width, r.y+r.height); - wxMessageBox(_("Screenshot captured: ") + wxString(screenshot)); + wxMessageBox(wxString::Format(_T("Screenshot captured: %s"), + screenshot.c_str())); } // --------------------------------------------------------------------------- @@ -434,8 +435,8 @@ static bool wxHandleSpecialKeys(wxKeyEvent& event) #ifdef __WXDEBUG__ // FIXME_MGL - remove when KB_sysReq works in MGL! || (event.m_keyCode == WXK_F1 && event.m_shiftDown && event.m_controlDown) - ) #endif + ) { wxCaptureScreenshot(event.m_altDown/*only active wnd?*/); return TRUE; @@ -543,7 +544,7 @@ void wxWindowMGL::Init() if ( !g_winMng ) { if ( !wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()) ) - wxFatalError(_("Cannot initialize display.")); + wxLogFatalError(_("Cannot initialize display.")); } // generic: @@ -808,7 +809,7 @@ void wxWindowMGL::DoCaptureMouse() void wxWindowMGL::DoReleaseMouse() { - wxASSERT_MSG( gs_mouseCapture == this, wxT("attempt to release mouse, but this window hasn't captured it") ) + wxASSERT_MSG( gs_mouseCapture == this, wxT("attempt to release mouse, but this window hasn't captured it") ); MGL_wmUncaptureEvents(m_wnd, wxMGL_CAPTURE_MOUSE); gs_mouseCapture = NULL;