wxGPE updates to HEAD.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-02-15 15:31:39 +00:00
parent 31414f4c19
commit ca06ee0df7
6 changed files with 60 additions and 26 deletions

View File

@@ -44,12 +44,6 @@ wxSystemScreenType wxSystemSettings::ms_screen = wxSYS_SCREEN_NONE;
wxSystemScreenType wxSystemSettings::GetScreenType()
{
if (ms_screen == wxSYS_SCREEN_NONE)
#ifndef __WXUNIVERSAL__
{
// As a start, all GUI are desktops.
ms_screen = wxSYS_SCREEN_DESKTOP;
}
#else
{
// wxUniv will be used on small devices, too.
int x = GetMetric( wxSYS_SCREEN_X );
@@ -64,8 +58,11 @@ wxSystemScreenType wxSystemSettings::GetScreenType()
if (x < 200)
ms_screen = wxSYS_SCREEN_TINY;
// This is probably a bug, but VNC seems to report 0
if (x < 10)
ms_screen = wxSYS_SCREEN_DESKTOP;
}
#endif
return ms_screen;
}