mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
Merge pull request #2078 from RaiKoHoff/RC2_DEV
Fix missing DPI scaling selection mode
This commit is contained in:
commit
e4997a7e82
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user