X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..1f575e656994f0692712d5a4fbc0e07db825c974:/src/motif/settings.cpp diff --git a/src/motif/settings.cpp b/src/motif/settings.cpp index b332b632c7..25bcfddc02 100644 --- a/src/motif/settings.cpp +++ b/src/motif/settings.cpp @@ -30,6 +30,8 @@ #pragma message enable nosimpint #endif +#include "wx/x11/privx.h" + // To correctly read the resources from the database, we create a // sample widget. This has the application shell as the parent and // so will be destroyed when the applicaion is closed. @@ -179,6 +181,8 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) // Get a system metric, e.g. scrollbar size int wxSystemSettingsNative::GetMetric(wxSystemMetric index) { + int return_value = 0; + switch ( index) { case wxSYS_HSCROLL_Y: @@ -223,11 +227,13 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) case wxSYS_WINDOWMIN_X: // TODO case wxSYS_WINDOWMIN_Y: - // TODO + break; case wxSYS_SCREEN_X: - // TODO + return_value = DisplayWidth( wxGlobalDisplay(), 0 ); + break; case wxSYS_SCREEN_Y: - // TODO + return_value = DisplayHeight( wxGlobalDisplay(), 0 ); + break; case wxSYS_FRAMESIZE_X: // TODO case wxSYS_FRAMESIZE_Y: @@ -258,7 +264,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) ; } - return 0; + return return_value; } bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)