Skip to content

Commit 91f4d46

Browse files
eagleivgXottab-DUTY
authored andcommitted
xrEditor: fix build
1 parent 2968284 commit 91f4d46

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Common/PlatformLinux.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,4 @@ inline int _filelength(int fd)
309309
#define _MAX_EXT 256
310310

311311
#define SEM_FAILCRITICALERRORS 1
312-
#define SetErrorMode(x) {x=x}
312+
#define SetErrorMode(x) {}

src/editors/xrEditor/entry_point.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "xrEngine/device.h"
66
#include "xrEngine/XR_IOConsole.h"
77
#include "xrEngine/xr_ioc_cmd.h"
8+
#include "SDL.h"
89

910

1011
using namespace XRay;
@@ -25,11 +26,11 @@ void UIThreadProc(void*)
2526
Core.Initialize("OpenXRayEditor", LogCallback(ELogCallback, windowIDE->Log().Handle.ToPointer()), true);
2627

2728
#ifdef XR_X64
28-
Device.m_hWnd = (HWND)windowIDE->View().GetViewHandle().ToInt64();
29+
Device.m_sdlWnd = (SDL_Window *)windowIDE->View().GetViewHandle().ToInt64();
2930
#else
3031
Device.m_hWnd = (HWND)windowIDE->View().GetViewHandle().ToInt32();
3132
#endif
32-
VERIFY(Device.m_hWnd != INVALID_HANDLE_VALUE);
33+
VERIFY(Device.m_sdlWnd != nullptr);
3334

3435
UICreated.Set();
3536
ReadyToShowUI.Wait();
@@ -117,4 +118,4 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int)
117118
FATAL("stack overflow");
118119
}
119120
return 0;
120-
}
121+
}

0 commit comments

Comments
 (0)