From 2c08b4c50e1ef9b40d7f92c10da56a680f484fef Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 19 Sep 2002 20:24:29 +0000 Subject: [PATCH] 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 --- src/common/settcmn.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/settcmn.cpp b/src/common/settcmn.cpp index 93ebe6286d..6e84b6a118 100644 --- a/src/common/settcmn.cpp +++ b/src/common/settcmn.cpp @@ -44,7 +44,7 @@ wxSystemScreenType wxSystemSettings::ms_screen = wxSYS_SCREEN_NONE; wxSystemScreenType wxSystemSettings::GetScreenType() { if (ms_screen == wxSYS_SCREEN_NONE) -#ifndef __WXUNIV__ +#ifndef __WXUNIVERSAL__ { // As a start, all GUI are desktops. ms_screen = wxSYS_SCREEN_DESKTOP; @@ -52,9 +52,7 @@ wxSystemScreenType wxSystemSettings::GetScreenType() #else { // wxUniv will be used on small devices, too. - int x = 0; - int y = 0; - wxGetDisplaySize( &x, &y ); + int x = GetMetric( wxSYS_SCREEN_X ); ms_screen = wxSYS_SCREEN_DESKTOP;