X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4aa7ecf1fa4ca92fd4b75ba1edc6d444798a67cf..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/palmos/settings.cpp diff --git a/src/palmos/settings.cpp b/src/palmos/settings.cpp index f4be898d01..bb050eb107 100644 --- a/src/palmos/settings.cpp +++ b/src/palmos/settings.cpp @@ -1,11 +1,11 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: palmos/settings.cpp +// Name: src/palmos/settings.cpp // Purpose: wxSystemSettingsNative implementation for Palm OS -// Author: William Osborne -// Modified by: +// Author: William Osborne - minimal working wxPalmOS port +// Modified by: Wlodzimierz ABX Skiba - native implementation // Created: 10/13/04 -// RCS-ID: $Id: -// Copyright: (c) William Osborne +// RCS-ID: $Id$ +// Copyright: (c) William Osborne, Wlodzimierz Skiba // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -123,9 +123,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)