summaryrefslogtreecommitdiffstats
path: root/src/fakerw/fake.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-01 08:43:35 +0200
committerGitHub <noreply@github.com>2020-05-01 08:43:35 +0200
commit56cb586f153ac741652d5e7e6eac824fed4e81d6 (patch)
tree93ccc935aea105341faf09df9fa8a04b5d13fe7a /src/fakerw/fake.cpp
parentRename m_phy_flagA80 to bSkipLineCol (diff)
parentimproved video modes for glfw (diff)
downloadre3-56cb586f153ac741652d5e7e6eac824fed4e81d6.tar
re3-56cb586f153ac741652d5e7e6eac824fed4e81d6.tar.gz
re3-56cb586f153ac741652d5e7e6eac824fed4e81d6.tar.bz2
re3-56cb586f153ac741652d5e7e6eac824fed4e81d6.tar.lz
re3-56cb586f153ac741652d5e7e6eac824fed4e81d6.tar.xz
re3-56cb586f153ac741652d5e7e6eac824fed4e81d6.tar.zst
re3-56cb586f153ac741652d5e7e6eac824fed4e81d6.zip
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r--src/fakerw/fake.cpp5
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);
}