GregMiscellaneous: Minor clean

git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3737 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2010-09-06 12:23:45 +00:00
parent 3dcb931a49
commit ddb33652ab
2 changed files with 10 additions and 19 deletions

View File

@ -29,10 +29,6 @@
#undef CreateWindow // Undo Windows.h global namespace pollution #undef CreateWindow // Undo Windows.h global namespace pollution
#ifdef GL_X11_WINDOW
#include <X11/extensions/xf86vmode.h>
#endif
class GLWindow class GLWindow
{ {
private: private:
@ -45,9 +41,6 @@ class GLWindow
Window glWindow; Window glWindow;
XSetWindowAttributes attr; XSetWindowAttributes attr;
// Original desktop video mode
XF86VidModeModeInfo deskMode;
bool CreateVisual(); bool CreateVisual();
void GetGLXVersion(); void GetGLXVersion();
void GetWindowSize(); void GetWindowSize();

View File

@ -217,8 +217,9 @@ bool GLWindow::DisplayWindow(int _width, int _height)
GetGLXVersion(); GetGLXVersion();
// Create a window at the last position/size
glWindow = XCreateWindow(glDisplay, RootWindow(glDisplay, vi->screen), glWindow = XCreateWindow(glDisplay, RootWindow(glDisplay, vi->screen),
0, 0, _width, _height, 0, vi->depth, InputOutput, vi->visual, conf.x , conf.y , _width, _height, 0, vi->depth, InputOutput, vi->visual,
CWBorderPixel | CWColormap | CWEventMask, CWBorderPixel | CWColormap | CWEventMask,
&attr); &attr);
@ -243,13 +244,10 @@ bool GLWindow::DisplayWindow(int _width, int _height)
// init fullscreen to 0. ToggleFullscreen will update it // init fullscreen to 0. ToggleFullscreen will update it
fullScreen = 0; fullScreen = 0;
if (conf.fullscreen()) { if (conf.fullscreen())
ToggleFullscreen(); ToggleFullscreen();
} else { else
// Restore the window position
XMoveWindow(glDisplay, glWindow, conf.x, conf.y);
GetWindowSize(); GetWindowSize();
}
return true; return true;
} }