You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Win32: Use native monitor zoom for menu item image scaling
On Win32, the OS paints MenuItem images using sizes defined by
SM_CXMENUCHECK / SM_CYMENUCHECK. If images are not provided at these
metrics-specific sizes, Windows rescales them, causing unexpected sizes
and alpha channel issues.
In getMenuItemIconSelectedBitmapHandle, adaptZoomForMenuItem was called
which returns a fixed scaled value from getZoom() when fix autoScale
value is provided e.g. 250 instead of the current
monitor's native zoom (150). This caused the OS to perform additional
scaling.
Updated code to call adaptZoomForMenuItem(nativeZoom, image) so that the
image is prepared for the actual monitor zoom, avoiding unnecessary OS
scaling and preserving alpha channel integrity.
0 commit comments