X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b28d3abf7eb85e8a8d056076d2812977105a28e1..30bb5e18acd15fdab9ca70f600eee43771e28928:/src/x11/settings.cpp diff --git a/src/x11/settings.cpp b/src/x11/settings.cpp index d27621f7c4..188217ba89 100644 --- a/src/x11/settings.cpp +++ b/src/x11/settings.cpp @@ -13,17 +13,26 @@ // per-user file, which can be edited using a Windows-control-panel clone. // Also they should be documented better. Some are very MS Windows-ish. -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "settings.h" #endif #include "wx/settings.h" #include "wx/gdicmn.h" +#include "wx/x11/private.h" wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) { - // Overridden by wxSystemSettings::GetColour in wxUniversal - // to do the Right Thing + switch (index) + { + case wxSYS_COLOUR_APPWORKSPACE: + return wxColour( 0xc0c0c0 ); + + default: + break; + } + + // Overridden mostly by wxSystemSettings::GetColour in wxUniversal return *wxWHITE; } @@ -115,11 +124,11 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) // TODO return 0; case wxSYS_SCREEN_X: - // TODO - return 0; + return DisplayWidth( wxGlobalDisplay(), 0 ); + case wxSYS_SCREEN_Y: - // TODO - return 0; + return DisplayHeight( wxGlobalDisplay(), 0 ); + case wxSYS_FRAMESIZE_X: // TODO return 0;