compile fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1613 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-12-20 19:40:20 +00:00
parent 3be88bb2dd
commit 422437824c
7 changed files with 26 additions and 24 deletions

View File

@ -18,7 +18,7 @@
#include "Globals.h"
#include "IniFile.h"
#include "svnrev.h"
#include "Config.h"
#include "Render.h"
#include "nGLUtil.h"
@ -55,11 +55,11 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize,
g_VideoInitialize.pPeekMessages = &Callback_PeekMessages;
g_VideoInitialize.pUpdateFPSDisplay = &UpdateFPSDisplay;
if (strncmp(iBackend, "sdl") == 0)
if (strncmp(g_Config.iBackend, "sdl") == 0)
glWin = new SDLWindow(width, height);
else if (strncmp(iBackend, "x11") == 0)
else if (strncmp(g_Config.iBackend, "x11") == 0)
glWin = new X11Window(width, height);
else if (strncmp(iBackend, "wxgl") == 0)
else if (strncmp(g_Config.iBackend, "wxgl") == 0)
glWin = new WXGLWindow(width, height);
return (glWin?true:false);
@ -95,6 +95,7 @@ u32 OpenGL_GetWidth() {
u32 OpenGL_GetHeight() {
return glWin->GetWidth();
}
void OpenGL_SetSize(u32 width, u32 height) {
glWin->SetSize(width, height);