Actually implement setting_screen size since
we are writing code for it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,7 +44,7 @@ wxSystemScreenType wxSystemSettings::ms_screen = wxSYS_SCREEN_NONE;
|
|||||||
wxSystemScreenType wxSystemSettings::GetScreenType()
|
wxSystemScreenType wxSystemSettings::GetScreenType()
|
||||||
{
|
{
|
||||||
if (ms_screen == wxSYS_SCREEN_NONE)
|
if (ms_screen == wxSYS_SCREEN_NONE)
|
||||||
#ifndef __WXUNIV__
|
#ifndef __WXUNIVERSAL__
|
||||||
{
|
{
|
||||||
// As a start, all GUI are desktops.
|
// As a start, all GUI are desktops.
|
||||||
ms_screen = wxSYS_SCREEN_DESKTOP;
|
ms_screen = wxSYS_SCREEN_DESKTOP;
|
||||||
@@ -52,9 +52,7 @@ wxSystemScreenType wxSystemSettings::GetScreenType()
|
|||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
// wxUniv will be used on small devices, too.
|
// wxUniv will be used on small devices, too.
|
||||||
int x = 0;
|
int x = GetMetric( wxSYS_SCREEN_X );
|
||||||
int y = 0;
|
|
||||||
wxGetDisplaySize( &x, &y );
|
|
||||||
|
|
||||||
ms_screen = wxSYS_SCREEN_DESKTOP;
|
ms_screen = wxSYS_SCREEN_DESKTOP;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user