mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 17:02:51 +08:00
Fix height of cursor boxes in the drawing sample
Remove wrong FromPhys() call, wxSYS_CURSOR_Y is expressed in logical pixels, this is a leftover from an old and never used version of the code in which it was wrongly expressed in physical ones.
This commit is contained in:
@@ -1979,7 +1979,7 @@ void MyCanvas::DrawCursors(wxDC& dc)
|
||||
x, y);
|
||||
|
||||
const int w = FromDIP(200);
|
||||
const int h = FromPhys(wxSystemSettings::GetMetric(wxSYS_CURSOR_Y, this));
|
||||
const int h = wxSystemSettings::GetMetric(wxSYS_CURSOR_Y, this);
|
||||
const int margin = dc.GetCharWidth();
|
||||
|
||||
y += h;
|
||||
|
||||
Reference in New Issue
Block a user