diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-01 12:46:36 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-01 12:46:36 +0200 |
commit | 79d66b79101d72a460ad2cc1338da06a292d30cc (patch) | |
tree | 35332ede65efe94504a5fdb8b0a3a2cc25c885e2 /src/fakerw/fake.cpp | |
parent | updated get/set (diff) | |
parent | Merge pull request #499 from aap/master (diff) | |
download | re3-79d66b79101d72a460ad2cc1338da06a292d30cc.tar re3-79d66b79101d72a460ad2cc1338da06a292d30cc.tar.gz re3-79d66b79101d72a460ad2cc1338da06a292d30cc.tar.bz2 re3-79d66b79101d72a460ad2cc1338da06a292d30cc.tar.lz re3-79d66b79101d72a460ad2cc1338da06a292d30cc.tar.xz re3-79d66b79101d72a460ad2cc1338da06a292d30cc.tar.zst re3-79d66b79101d72a460ad2cc1338da06a292d30cc.zip |
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r-- | src/fakerw/fake.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp index ccc7635f..113c4519 100644 --- a/src/fakerw/fake.cpp +++ b/src/fakerw/fake.cpp @@ -490,12 +490,11 @@ RwBool RwRenderStateSet(RwRenderState state, void *value) RwBool RwEngineInit(RwMemoryFunctions *memFuncs, RwUInt32 initFlags, RwUInt32 resArenaSize) { Engine::init(); return true; } // TODO: this is platform dependent RwBool RwEngineOpen(RwEngineOpenParams *initParams) { -#if defined RW_D3D9 || defined RWLIBS static EngineOpenParams openParams; +#ifdef RW_D3D9 openParams.window = (HWND)initParams->displayID; #else - extern EngineOpenParams openParams; - openParams.window = (GLFWwindow**)initParams->displayID; + openParams = *(EngineOpenParams*)initParams->displayID; #endif return Engine::open(&openParams); } |