X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e273151278d28cceefe6eee8c49bc6915306805d..1a9a6eed360bc9a263f2ea7c0d470953397de531:/src/palmos/settings.cpp diff --git a/src/palmos/settings.cpp b/src/palmos/settings.cpp index 4191175eb3..e9d5be3f19 100644 --- a/src/palmos/settings.cpp +++ b/src/palmos/settings.cpp @@ -2,10 +2,10 @@ // Name: src/palmos/settings.cpp // Purpose: wxSystemSettingsNative implementation for Palm OS // Author: William Osborne - minimal working wxPalmOS port -// Modified by: +// Modified by: Wlodzimierz ABX Skiba - native implementation // Created: 10/13/04 // RCS-ID: $Id$ -// Copyright: (c) William Osborne +// Copyright: (c) William Osborne, Wlodzimierz Skiba // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -24,15 +24,18 @@ #pragma hdrstop #endif +#include "wx/settings.h" + #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/gdicmn.h" + #include "wx/module.h" #endif -#include "wx/settings.h" -#include "wx/module.h" #include "wx/fontutil.h" +#include + // ============================================================================ // implementation // ============================================================================ @@ -123,9 +126,25 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) // ---------------------------------------------------------------------------- // Get a system metric, e.g. scrollbar size -int wxSystemSettingsNative::GetMetric(wxSystemMetric index) +int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win)) { - return -1; + int metric = -1; + uint32_t attrP; + + switch( index ) + { + case wxSYS_SCREEN_X: + WinScreenGetAttribute(winScreenWidth, &attrP); + metric = attrP; + break; + + case wxSYS_SCREEN_Y: + WinScreenGetAttribute(winScreenHeight, &attrP); + metric = attrP; + break; + } + + return metric; } bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)