mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-22 11:03:28 -05:00
imagelist hq-scale
This commit is contained in:
1 file changed
+3
-4
+3
-4
@@ -755,7 +755,6 @@ LONG _app_nmcustdraw_listview (LPNMLVCUSTOMDRAW lpnmlv)
|
||||
_r_dc_fillrect (lpnmlv->nmcd.hdc, &lpnmlv->nmcd.rc, lpnmlv->clrTextBk);
|
||||
|
||||
_r_obj_dereference (ptr_object, &_app_dereferencecolor);
|
||||
|
||||
return CDRF_NEWFONT;
|
||||
}
|
||||
}
|
||||
@@ -2893,7 +2892,7 @@ INT_PTR CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
||||
const INT icon_size_large = GetSystemMetrics (SM_CXICON);
|
||||
const INT icon_size_toolbar = std::clamp (app.GetDPI (app.ConfigGet (L"ToolbarSize", 20).AsInt ()), icon_size_small, icon_size_large);
|
||||
|
||||
config.himg_toolbar = ImageList_Create (icon_size_toolbar, icon_size_toolbar, ILC_COLOR32 | ILC_MASK, 0, 5);
|
||||
config.himg_toolbar = ImageList_Create (icon_size_toolbar, icon_size_toolbar, ILC_COLOR32 | ILC_HIGHQUALITYSCALE, 0, 0);
|
||||
|
||||
if (config.himg_toolbar)
|
||||
{
|
||||
@@ -2909,7 +2908,7 @@ INT_PTR CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
||||
ImageList_Add (config.himg_toolbar, _app_bitmapfrompng (app.GetHINSTANCE (), MAKEINTRESOURCE (IDP_HEARTH), icon_size_toolbar), nullptr);
|
||||
}
|
||||
|
||||
config.himg_rules_small = ImageList_Create (icon_size_small, icon_size_small, ILC_COLOR32 | ILC_MASK, 0, 5);
|
||||
config.himg_rules_small = ImageList_Create (icon_size_small, icon_size_small, ILC_COLOR32 | ILC_HIGHQUALITYSCALE, 2, 2);
|
||||
|
||||
if (config.himg_rules_small)
|
||||
{
|
||||
@@ -2917,7 +2916,7 @@ INT_PTR CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
||||
ImageList_Add (config.himg_rules_small, _app_bitmapfrompng (app.GetHINSTANCE (), MAKEINTRESOURCE (IDP_BLOCK), icon_size_small), nullptr);
|
||||
}
|
||||
|
||||
config.himg_rules_large = ImageList_Create (icon_size_large, icon_size_large, ILC_COLOR32 | ILC_MASK, 0, 5);
|
||||
config.himg_rules_large = ImageList_Create (icon_size_large, icon_size_large, ILC_COLOR32 | ILC_HIGHQUALITYSCALE, 2, 2);
|
||||
|
||||
if (config.himg_rules_large)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user