Updater: Set default title

Avoid any potential flicker.
pull/3634/head
Stenzek 10 months ago
parent 4a5e17273b
commit bea07e71af
No known key found for this signature in database

@ -94,9 +94,10 @@ bool Win32ProgressCallback::Create()
RECT adjusted_rect = {0, 0, Scale(WINDOW_WIDTH), Scale(WINDOW_HEIGHT)};
AdjustWindowRectExForDpi(&adjusted_rect, WS_OVERLAPPEDWINDOW, FALSE, WS_EX_CLIENTEDGE, m_dpi);
m_window_hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, CLASS_NAME, L"", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT,
adjusted_rect.right - adjusted_rect.left, adjusted_rect.bottom - adjusted_rect.top,
nullptr, nullptr, GetModuleHandle(nullptr), this);
m_window_hwnd =
CreateWindowEx(WS_EX_CLIENTEDGE, CLASS_NAME, L"DuckStation Update Installer", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
CW_USEDEFAULT, adjusted_rect.right - adjusted_rect.left, adjusted_rect.bottom - adjusted_rect.top,
nullptr, nullptr, GetModuleHandle(nullptr), this);
if (!m_window_hwnd)
{
ERROR_LOG("Failed to create window");

Loading…
Cancel
Save