Use DPI Aware wxGetSystemMetrics
If no wxWindow is known, use wxTheApp->GetTopWindow(). Also use a wxWindow for all wxSystemSettings::GetMetric calls.
This commit is contained in:
@@ -714,8 +714,8 @@ wxSize wxWizard::GetPageSize() const
|
||||
if ( wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA )
|
||||
{
|
||||
// Make the default page size small enough to fit on screen
|
||||
DEFAULT_PAGE_WIDTH = wxSystemSettings::GetMetric(wxSYS_SCREEN_X) / 2;
|
||||
DEFAULT_PAGE_HEIGHT = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y) / 2;
|
||||
DEFAULT_PAGE_WIDTH = wxSystemSettings::GetMetric(wxSYS_SCREEN_X, m_parent) / 2;
|
||||
DEFAULT_PAGE_HEIGHT = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y, m_parent) / 2;
|
||||
}
|
||||
else // !PDA
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user