Skip to content

Commit

Permalink
xrEditor: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Jul 9, 2018
1 parent c8e26d4 commit d0e39c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Common/PlatformLinux.inl
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,4 @@ inline int _filelength(int fd)
#define _MAX_EXT 256

#define SEM_FAILCRITICALERRORS 1
#define SetErrorMode(x) {x=x}
#define SetErrorMode(x) {}
7 changes: 4 additions & 3 deletions src/editors/xrEditor/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "xrEngine/device.h"
#include "xrEngine/XR_IOConsole.h"
#include "xrEngine/xr_ioc_cmd.h"
#include "SDL.h"


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

#ifdef XR_X64
Device.m_hWnd = (HWND)windowIDE->View().GetViewHandle().ToInt64();
Device.m_sdlWnd = (SDL_Window *)windowIDE->View().GetViewHandle().ToInt64();
#else
Device.m_hWnd = (HWND)windowIDE->View().GetViewHandle().ToInt32();
#endif
VERIFY(Device.m_hWnd != INVALID_HANDLE_VALUE);
VERIFY(Device.m_sdlWnd != nullptr);

UICreated.Set();
ReadyToShowUI.Wait();
Expand Down Expand Up @@ -117,4 +118,4 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int)
FATAL("stack overflow");
}
return 0;
}
}

0 comments on commit d0e39c8

Please sign in to comment.