Merge pull request #1069 from cxd4/SwapBuffers

Constrict window message initializers as ANDROID- and WIN32-only.
This commit is contained in:
zilmar 2016-04-21 14:49:07 +10:00
commit 4e2b618625
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;