Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/xrEngine/x_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,8 @@ int APIENTRY WinMain_impl(HINSTANCE hInstance,
#endif // DEDICATED_SERVER

// Title window
logoWindow = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_STARTUP), 0, logDlgProc);

logoWindow = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_STARTUP), 0, logDlgProc);
HWND logoPicture = GetDlgItem(logoWindow, IDC_STATIC_LOGO);
RECT logoRect;
GetWindowRect(logoPicture, &logoRect);
Expand All @@ -1048,6 +1048,13 @@ int APIENTRY WinMain_impl(HINSTANCE hInstance,
int x = monX + (screenW - splashW) / 2;
int y = monY + (screenH - splashH) / 2;

// verdatim: set the size of the splash window to be zero when the flag "-nosplashwindow" is given
if (strstr(xr_strdup(GetCommandLine()), "-nosplashwindow")) {
splashW = int(0);
splashH = int(0);
}


SetWindowPos(
logoWindow,
#ifndef DEBUG
Expand All @@ -1061,7 +1068,7 @@ int APIENTRY WinMain_impl(HINSTANCE hInstance,
splashH,
SWP_SHOWWINDOW
);

UpdateWindow(logoWindow);

// AVI
Expand Down
Loading