mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-31 02:49:35 +08:00
[fix] fix Windows privacy cover build and adjust branding spacing
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user