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:
Vadim Zeitlin
2025-07-27 19:49:51 +02:00
parent d86b020d94
commit 34031f3f04
+1 -1
View File
@@ -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;