GregMiscellaneous: zzogl: Fix fullscreen setting & remove useless library

Major issue left: widescreen.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3734 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2010-09-05 22:08:55 +00:00
parent 65b985698e
commit dc49a995d6
3 changed files with 6 additions and 9 deletions

View File

@ -23,9 +23,6 @@ if(Linux)
endif(GTK2_FOUND)
find_package(X11)
# Manually find Xxf86vm because it is not done in the module...
FIND_LIBRARY(X11_Xxf86vm_LIB Xxf86vm ${X11_LIB_SEARCH_PATH})
MARK_AS_ADVANCED(X11_Xxf86vm_LIB)
endif(Linux)
## Use cmake package to find module

View File

@ -155,9 +155,6 @@ target_link_libraries(${Output} ${OPENGL_LIBRARIES})
# link target with X11
target_link_libraries(${Output} ${X11_LIBRARIES})
# link target with X11 videomod
target_link_libraries(${Output} ${X11_Xxf86vm_LIB})
# User flags options
if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")

View File

@ -179,8 +179,10 @@ void GLWindow::ToggleFullscreen()
XLockDisplay(glDisplay);
if (!XSendEvent(glDisplay, RootWindow(glDisplay, vi->screen), False, mask, (XEvent*)(&cme)))
ZZLog::Error_Log("Failed to send event: toggle fullscreen");
else
else {
fullScreen = (!fullScreen);
conf.setFullscreen(fullScreen);
}
XUnlockDisplay(glDisplay);
// Apply the change
@ -204,7 +206,6 @@ bool GLWindow::DisplayWindow(int _width, int _height)
x = conf.x;
y = conf.y;
fullScreen = (conf.fullscreen());
if (!CreateVisual()) return false;
@ -247,7 +248,9 @@ bool GLWindow::DisplayWindow(int _width, int _height)
else
ZZLog::Error_Log("No Direct Rendering possible!");
if (fullScreen) {
// init fullscreen to 0. ToggleFullscreen will update it
fullScreen = 0;
if (conf.fullscreen()) {
ToggleFullscreen();
} else {
// Restore the window position