X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..7e81aa035ccbe28af54822e40607779d57d1b004:/src/os2/dcscreen.cpp diff --git a/src/os2/dcscreen.cpp b/src/os2/dcscreen.cpp index 5eaa7dc200..4cf8dcc35b 100644 --- a/src/os2/dcscreen.cpp +++ b/src/os2/dcscreen.cpp @@ -31,11 +31,22 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC) // Create a DC representing the whole screen wxScreenDC::wxScreenDC() { - // TODO -} - -wxScreenDC::~wxScreenDC() + m_hDC = ::WinOpenWindowDC(HWND_DESKTOP); + m_hPS = ::WinGetScreenPS(HWND_DESKTOP); + ::GpiSetBackMix(m_hPS, BM_LEAVEALONE); +} // end of wxScreenDC::wxScreenDC() + +void wxScreenDC::DoGetSize( + int* pnWidth +, int* pnHeight +) const { - // TODO -} + // + // Skip wxWindowDC version because it doesn't work without a valid m_canvas + // (which we don't have) + // + wxDC::DoGetSize( pnWidth + ,pnHeight + ); +} // end of wxScreenDC::DoGetSize