From b51b2d30c9b0cc941d53d4ffc15339965e00bdea Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 17 May 2019 13:41:19 +0200 Subject: [PATCH] Fixed the previous commit, SystemParametersInfoForDpi was called with incorrect parameters. --- src/slic3r/GUI/GUI_Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_Utils.cpp b/src/slic3r/GUI/GUI_Utils.cpp index e978dc466..74e70c554 100644 --- a/src/slic3r/GUI/GUI_Utils.cpp +++ b/src/slic3r/GUI/GUI_Utils.cpp @@ -125,7 +125,7 @@ wxFont get_default_font_for_dpi(int dpi) NONCLIENTMETRICS nm; memset(&nm, 0, sizeof(NONCLIENTMETRICS)); nm.cbSize = sizeof(NONCLIENTMETRICS); - if (SystemParametersInfoForDpi_fn(SPI_GETNONCLIENTMETRICS, 0, &nm, 0, dpi)) { + if (SystemParametersInfoForDpi_fn(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &nm, 0, dpi)) { wxNativeFontInfo info; info.lf = nm.lfMessageFont; return wxFont(info);