mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Xquartz doesn't support XF86VidMode, nor does it support fullscreen mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1447 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d26dabd3b9
commit
d5c9afd449
2 changed files with 8 additions and 1 deletions
|
@ -376,6 +376,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight
|
|||
GLWin.attr.colormap = cmap;
|
||||
GLWin.attr.border_pixel = 0;
|
||||
|
||||
#ifndef __APPLE__
|
||||
// get a connection
|
||||
XF86VidModeQueryVersion(GLWin.dpy, &vidModeMajorVersion, &vidModeMinorVersion);
|
||||
|
||||
|
@ -428,7 +429,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight
|
|||
GLWin.fs = 0;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
if (!GLWin.fs) {
|
||||
|
||||
|
@ -709,6 +710,7 @@ void OpenGL_Shutdown()
|
|||
XCloseDisplay(GLWin.dpy);
|
||||
GLWin.ctx = NULL;
|
||||
}
|
||||
#ifndef __APPLE__
|
||||
/* switch back to original desktop resolution if we were in fs */
|
||||
if (GLWin.dpy != NULL) {
|
||||
if (GLWin.fs) {
|
||||
|
@ -717,4 +719,5 @@ void OpenGL_Shutdown()
|
|||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue