1
/////////////////////////////////////////////////////////////////////////////
2
// Name: src/common/settcmn.cpp
3
// Purpose: common (to all ports) wxWindow functions
4
// Author: Robert Roebling
5
// Copyright: (c) wxWidgets team
6
// Licence: wxWindows licence
7
/////////////////////////////////////////////////////////////////////////////
9
// ============================================================================
11
// ============================================================================
13
// ----------------------------------------------------------------------------
15
// ----------------------------------------------------------------------------
17
// For compilers that support precompilation, includes "wx.h".
18
#include "wx/wxprec.h"
24
#include "wx/settings.h"
30
// ----------------------------------------------------------------------------
32
// ----------------------------------------------------------------------------
34
wxSystemScreenType wxSystemSettings::ms_screen = wxSYS_SCREEN_NONE;
36
// ----------------------------------------------------------------------------
37
// ----------------------------------------------------------------------------
39
wxSystemScreenType wxSystemSettings::GetScreenType()
41
if (ms_screen == wxSYS_SCREEN_NONE)
43
// wxUniv will be used on small devices, too.
44
int x = GetMetric( wxSYS_SCREEN_X );
46
ms_screen = wxSYS_SCREEN_DESKTOP;
49
ms_screen = wxSYS_SCREEN_SMALL;
52
ms_screen = wxSYS_SCREEN_PDA;
55
ms_screen = wxSYS_SCREEN_TINY;
57
// This is probably a bug, but VNC seems to report 0
59
ms_screen = wxSYS_SCREEN_DESKTOP;
65
void wxSystemSettings::SetScreenType( wxSystemScreenType screen )