[fix] fix Windows privacy cover build and adjust branding spacing

This commit is contained in:
kunkundi
2026-10-28 11:35:49 +08:00
parent af49d5ba28
commit d989df275b
2 changed files with 3 additions and 3 deletions
@@ -132,7 +132,7 @@ bool DrawPrivacyCover(HDC dc, const RECT& rect, UINT dpi, HINSTANCE module,
} }
const int content_height = static_cast<int>(lines[0].bounds.bottom) + line_gap + key_height; const int content_height = static_cast<int>(lines[0].bounds.bottom) + line_gap + key_height;
// Center the instructions independently of the footer, leaving room on short displays. // Center the instructions independently of the footer, leaving room on short displays.
const int top = (std::min)(rect.top + (height - content_height) / 2, const int top = (std::min)(static_cast<int>(rect.top) + (height - content_height) / 2,
brand_bottom - brand_height - px(32) - content_height); brand_bottom - brand_height - px(32) - content_height);
if (top < rect.top + margin || (std::max)(row_width, text_width) + 2 * margin > width) if (top < rect.top + margin || (std::max)(row_width, text_width) + 2 * margin > width)
return false; return false;