Skip to content

Commit bea07e7

Browse files
committed
Updater: Set default title
Avoid any potential flicker.
1 parent 4a5e172 commit bea07e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/updater/win32_progress_callback.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ bool Win32ProgressCallback::Create()
9494
RECT adjusted_rect = {0, 0, Scale(WINDOW_WIDTH), Scale(WINDOW_HEIGHT)};
9595
AdjustWindowRectExForDpi(&adjusted_rect, WS_OVERLAPPEDWINDOW, FALSE, WS_EX_CLIENTEDGE, m_dpi);
9696

97-
m_window_hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, CLASS_NAME, L"", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT,
98-
adjusted_rect.right - adjusted_rect.left, adjusted_rect.bottom - adjusted_rect.top,
99-
nullptr, nullptr, GetModuleHandle(nullptr), this);
97+
m_window_hwnd =
98+
CreateWindowEx(WS_EX_CLIENTEDGE, CLASS_NAME, L"DuckStation Update Installer", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
99+
CW_USEDEFAULT, adjusted_rect.right - adjusted_rect.left, adjusted_rect.bottom - adjusted_rect.top,
100+
nullptr, nullptr, GetModuleHandle(nullptr), this);
100101
if (!m_window_hwnd)
101102
{
102103
ERROR_LOG("Failed to create window");

0 commit comments

Comments
 (0)