Applied patch [ 1213290 ] incorrect logic in wxTopLevelWindowMSW::ShowFullScreen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -757,7 +757,7 @@ bool wxTopLevelWindowMSW::ShowFullScreen(bool show, long style)
|
|||||||
rect = wxDisplay(dpy).GetGeometry();
|
rect = wxDisplay(dpy).GetGeometry();
|
||||||
}
|
}
|
||||||
else // fall back to the main desktop
|
else // fall back to the main desktop
|
||||||
#else // wxUSE_DISPLAY
|
#endif // wxUSE_DISPLAY
|
||||||
{
|
{
|
||||||
// resize to the size of the desktop
|
// resize to the size of the desktop
|
||||||
wxCopyRECTToRect(wxGetWindowRect(::GetDesktopWindow()), rect);
|
wxCopyRECTToRect(wxGetWindowRect(::GetDesktopWindow()), rect);
|
||||||
@@ -768,7 +768,6 @@ bool wxTopLevelWindowMSW::ShowFullScreen(bool show, long style)
|
|||||||
rect.y = 0;
|
rect.y = 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif // wxUSE_DISPLAY
|
|
||||||
|
|
||||||
SetSize(rect);
|
SetSize(rect);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user