mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
wxgl fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1524 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f225f92f4d
commit
2c66b9d36f
3 changed files with 16 additions and 4 deletions
|
@ -212,10 +212,11 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight
|
|||
wxSize size(_iwidth, _iheight);
|
||||
if (!g_Config.renderToMainframe ||
|
||||
g_VideoInitialize.pWindowHandle == NULL) {
|
||||
GLWin.frame = new wxFrame((wxFrame *)g_VideoInitialize.pWindowHandle,
|
||||
GLWin.frame = new wxFrame((wxWindow *)g_VideoInitialize.pWindowHandle,
|
||||
-1, _("Dolphin"), wxPoint(0,0), size);
|
||||
} else {
|
||||
GLWin.frame = (wxFrame *)g_VideoInitialize.pWindowHandle;
|
||||
GLWin.frame = new wxFrame((wxWindow *)NULL,
|
||||
-1, _("Dolphin"), wxPoint(0,0), size);
|
||||
}
|
||||
GLWin.glCanvas = new wxGLCanvas(GLWin.frame, wxID_ANY, NULL,
|
||||
wxPoint(0,0), size, wxSUNKEN_BORDER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue