Applied patch #840643 from Ian Brown with some modifications:
use DisplayWidth/DIsplayHeight instead of hardcoded values. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -179,6 +179,8 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
|
|||||||
// Get a system metric, e.g. scrollbar size
|
// Get a system metric, e.g. scrollbar size
|
||||||
int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
||||||
{
|
{
|
||||||
|
int return_value = 0;
|
||||||
|
|
||||||
switch ( index)
|
switch ( index)
|
||||||
{
|
{
|
||||||
case wxSYS_MOUSE_BUTTONS:
|
case wxSYS_MOUSE_BUTTONS:
|
||||||
@@ -220,11 +222,13 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
case wxSYS_WINDOWMIN_X:
|
case wxSYS_WINDOWMIN_X:
|
||||||
// TODO
|
// TODO
|
||||||
case wxSYS_WINDOWMIN_Y:
|
case wxSYS_WINDOWMIN_Y:
|
||||||
// TODO
|
break;
|
||||||
case wxSYS_SCREEN_X:
|
case wxSYS_SCREEN_X:
|
||||||
// TODO
|
return_value = DisplayWidth( wxGlobalDisplay(), 0 );
|
||||||
|
break;
|
||||||
case wxSYS_SCREEN_Y:
|
case wxSYS_SCREEN_Y:
|
||||||
// TODO
|
return_value = DisplayHeight( wxGlobalDisplay(), 0 );
|
||||||
|
break;
|
||||||
case wxSYS_FRAMESIZE_X:
|
case wxSYS_FRAMESIZE_X:
|
||||||
// TODO
|
// TODO
|
||||||
case wxSYS_FRAMESIZE_Y:
|
case wxSYS_FRAMESIZE_Y:
|
||||||
@@ -259,7 +263,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return return_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
|
bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
|
||||||
|
Reference in New Issue
Block a user