Skip to content

Commit 2269409

Browse files
committed
Show application windows right before start
Hide splash right before start
1 parent 9888861 commit 2269409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/xrEngine/device.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "IGame_Persistent.h"
2727
#include "xrScriptEngine/ScriptExporter.hpp"
2828
#include "xr_input.h"
29+
#include "splash.h"
2930

3031
ENGINE_API CRenderDevice Device;
3132
ENGINE_API CLoadScreenRenderer load_screen_renderer;
@@ -322,11 +323,12 @@ void CRenderDevice::Run()
322323
}
323324
// Start all threads
324325
mt_bMustExit = FALSE;
325-
ShowWindow(m_hWnd, SW_SHOWNORMAL);
326326
thread_spawn(SecondaryThreadProc, "X-RAY Secondary thread", 0, this);
327327
// Message cycle
328328
seqAppStart.Process(rp_AppStart);
329329
GEnv.Render->ClearTarget();
330+
splash::hide();
331+
ShowWindow(m_hWnd, SW_SHOWNORMAL);
330332
message_loop();
331333
seqAppEnd.Process(rp_AppEnd);
332334
// Stop Balance-Thread

src/xrEngine/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "Text_Console.h"
1919
#include "xrSASH.h"
2020
#include "xr_ioc_cmd.h"
21-
#include "splash.h"
2221

2322
#ifdef MASTER_GOLD
2423
#define NO_MULTI_INSTANCES
@@ -183,7 +182,6 @@ ENGINE_API void Startup()
183182
g_SpatialSpacePhysic = new ISpatial_DB("Spatial phys");
184183

185184
// Main cycle
186-
splash::hide();
187185
Device.Run();
188186
// Destroy APP
189187
xr_delete(g_SpatialSpacePhysic);

0 commit comments

Comments
 (0)