Constrict window message initializers as ANDROID- and WIN32-only.

This commit is contained in:
2016-04-21 00:47:20 -04:00
parent 68162c49a8
commit 1520aaa21f
1 changed files with 8 additions and 4 deletions

View File

@ -173,13 +173,17 @@ bool CGfxPlugin::Initiate(CN64System * System, RenderWindow * Window)
GFX_INFO Info = { 0 };
Info.MemoryBswaped = true;
#ifdef _WIN32
Info.hWnd = Window ? Window->GetWindowHandle() : NULL;
Info.hStatusBar = Window ? Window->GetStatusBar() : NULL;
#else
#if defined(ANDROID) || defined(__ANDROID__)
Info.SwapBuffers = SwapBuffers;
#endif
Info.hWnd = NULL;
Info.hStatusBar = NULL;
#ifdef _WIN32
if (Window != NULL)
{
Info.hWnd = Window->GetWindowHandle();
Info.hStatusBar = Window->GetStatusBar();
}
#endif
Info.CheckInterrupts = DummyCheckInterrupts;