Constrict window message initializers as ANDROID- and WIN32-only.
This commit is contained in:
parent
68162c49a8
commit
1520aaa21f
|
@ -173,13 +173,17 @@ bool CGfxPlugin::Initiate(CN64System * System, RenderWindow * Window)
|
||||||
GFX_INFO Info = { 0 };
|
GFX_INFO Info = { 0 };
|
||||||
|
|
||||||
Info.MemoryBswaped = true;
|
Info.MemoryBswaped = true;
|
||||||
#ifdef _WIN32
|
#if defined(ANDROID) || defined(__ANDROID__)
|
||||||
Info.hWnd = Window ? Window->GetWindowHandle() : NULL;
|
|
||||||
Info.hStatusBar = Window ? Window->GetStatusBar() : NULL;
|
|
||||||
#else
|
|
||||||
Info.SwapBuffers = SwapBuffers;
|
Info.SwapBuffers = SwapBuffers;
|
||||||
|
#endif
|
||||||
Info.hWnd = NULL;
|
Info.hWnd = NULL;
|
||||||
Info.hStatusBar = NULL;
|
Info.hStatusBar = NULL;
|
||||||
|
#ifdef _WIN32
|
||||||
|
if (Window != NULL)
|
||||||
|
{
|
||||||
|
Info.hWnd = Window->GetWindowHandle();
|
||||||
|
Info.hStatusBar = Window->GetStatusBar();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
Info.CheckInterrupts = DummyCheckInterrupts;
|
Info.CheckInterrupts = DummyCheckInterrupts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue