From 72fcf979ad808dc1610e7b7871b41cb81dd6c63a Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Mon, 9 Mar 2020 12:05:38 +0100 Subject: [PATCH] + fix: missing DPI scaling selection mode --- src/Notepad3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index b2664f39d..d0c2f0050 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -2192,10 +2192,12 @@ static HIMAGELIST CreateScaledImageListFromBitmap(HWND hWnd, HBITMAP hBmp) ImageList_AddMasked(himl, hBmp, CLR_DEFAULT); DPI_T dpi = GetCurrentDPI(hWnd); - if ((dpi.x == USER_DEFAULT_SCREEN_DPI) && (dpi.y == USER_DEFAULT_SCREEN_DPI)) + if (!Settings.DpiScaleToolBar || + ((dpi.x == USER_DEFAULT_SCREEN_DPI) && (dpi.y == USER_DEFAULT_SCREEN_DPI))) { return himl; // default DPI, we are done } + // Scale button icons/images int const scx = ScaleIntToCurrentDPIX(hWnd, cx);