From 092d5077146960cef8ef30ce73b2528da4897fd1 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 28 Sep 2019 22:45:23 +0200 Subject: [PATCH] Update comment in wxRendererMSW::GetCheckBoxSize related to DPI --- src/msw/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 9372afbd29..6645283603 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -550,8 +550,8 @@ wxRendererMSW::DrawTitleBarBitmap(wxWindow *win, wxSize wxRendererMSW::GetCheckBoxSize(wxWindow* win) { - // Even though we don't use the window in this implementation, still check - // that it's valid to avoid surprises when using themes. + // We must have a valid window in order to return the size which is correct + // for the display this window is on. wxCHECK_MSG( win, wxSize(0, 0), "Must have a valid window" ); return wxSize(wxGetSystemMetrics(SM_CXMENUCHECK, win),