X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2343d81ba29504d87971266f0ed819c252b6b1ee..e26c0634d0040057f09d902842c2b77aa9f0cbfc:/src/mgl/utils.cpp diff --git a/src/mgl/utils.cpp b/src/mgl/utils.cpp index 3017bbf4f3..e3c3c53606 100644 --- a/src/mgl/utils.cpp +++ b/src/mgl/utils.cpp @@ -43,17 +43,17 @@ void wxBell() void wxDisplaySize(int *width, int *height) { wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") ); - if (width) *width = g_displayDC->sizex(); - if (height) *height = g_displayDC->sizey(); + if (width) *width = g_displayDC->sizex()+1; + if (height) *height = g_displayDC->sizey()+1; } void wxDisplaySizeMM(int *width, int *height) { wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") ); if ( width ) - *width = g_displayDC->sizex() * 25/72; + *width = (g_displayDC->sizex()+1) * 25/72; if ( height ) - *height = g_displayDC->sizey() * 25/72; + *height = (g_displayDC->sizey()+1) * 25/72; // FIXME_MGL -- what about returning *real* monitor dimensions? }