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:
@@ -155,9 +155,9 @@ void wxMouseEventsManager::OnMove(wxMouseEvent& event)
|
||||
// assumption that they don't change -- which is wrong, of
|
||||
// course, the user can change them but it doesn't happen often
|
||||
static const int
|
||||
dragMinX = wxSystemSettings::GetMetric(wxSYS_DRAG_X);
|
||||
dragMinX = wxSystemSettings::GetMetric(wxSYS_DRAG_X, m_win);
|
||||
static const int
|
||||
dragMinY = wxSystemSettings::GetMetric(wxSYS_DRAG_Y);
|
||||
dragMinY = wxSystemSettings::GetMetric(wxSYS_DRAG_Y, m_win);
|
||||
|
||||
const wxPoint& pos = event.GetPosition();
|
||||
const wxPoint ofs = pos - m_posLast;
|
||||
|
||||
Reference in New Issue
Block a user