Changed several places using hard-coded size values to use FromDIP instead.

This commit is contained in:
Steve Browne
2015-11-24 12:21:43 -05:00
parent 6d38fb81dc
commit 633d04ca92
8 changed files with 14 additions and 10 deletions

View File

@@ -358,8 +358,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win,
wxRect ar = rect;
// make a rect for the arrow
ar.height = 4;
ar.width = 8;
ar.SetSize(wxWindow::FromDIP(wxSize(8, 4), win));
ar.y += (rect.height - ar.height)/2;
ar.x = ar.x + rect.width - 3*ar.width/2;
arrowSpace = 3*ar.width/2; // space to preserve when drawing the label