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
layout(win): split nBarH into icon vs DPI-scaled-frame terms (−~20px @ 100%)
The flat "content budget 66 -> 86" bump over-allocated ~20px at standard
DPI: the clipping it fixed only happens once the BUTTON FRAMES grow at
high DPI. Replace the single 86*nUIScale term with two:
nBarH = Max(110, Int(64*nDPI/96) // Windows chrome, DPI-scaled
+ Int(66*nUIScale) // fixed-size toolbar/palette icons
+ Int(20*Max(0,nDPI-96)/48)) // button-frame slack: 0 @ 96, +20 @ 144
So at 96 DPI the bar is ~20px shorter (2048px screen: 155 -> 134; 1920px:
130) while 1920@144 stays 182 — i.e. the high-DPI anti-clip behaviour the
86 bump introduced is preserved, just expressed as a DPI ramp instead of
a constant. No flat constants, no per-resolution branch.
bin/hbbuilder_win.exe rebuilt (MSVC x64).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments