mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
GLX: Remove all Host_GetRenderWindowSize calls.
Also remove x, y, width and height from the GLInterface, since it's only used in GLX, which no longer uses them
This commit is contained in:
@ -19,8 +19,7 @@ bool cXInterface::ServerConnect(void)
|
||||
|
||||
bool cXInterface::Initialize(void *config, void *window_handle)
|
||||
{
|
||||
int _tx, _ty, _twidth, _theight;
|
||||
XVisualInfo visTemplate;
|
||||
XVisualInfo visTemplate;
|
||||
int num_visuals;
|
||||
EGLint vid;
|
||||
|
||||
@ -42,13 +41,6 @@ bool cXInterface::Initialize(void *config, void *window_handle)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Host_GetRenderWindowSize(_tx, _ty, _twidth, _theight);
|
||||
|
||||
GLWin.x = _tx;
|
||||
GLWin.y = _ty;
|
||||
GLWin.width = _twidth;
|
||||
GLWin.height = _theight;
|
||||
|
||||
GLWin.evdpy = XOpenDisplay(nullptr);
|
||||
GLWin.parent = (Window) window_handle;
|
||||
GLWin.screen = DefaultScreen(GLWin.dpy);
|
||||
@ -81,7 +73,7 @@ void *cXInterface::CreateWindow(void)
|
||||
|
||||
// Create the window
|
||||
GLWin.win = XCreateWindow(GLWin.evdpy, GLWin.parent,
|
||||
GLWin.x, GLWin.y, GLWin.width, GLWin.height, 0,
|
||||
0, 0, 1, 1, 0,
|
||||
GLWin.vi->depth, InputOutput, GLWin.vi->visual,
|
||||
CWBorderPixel | CWBackPixel | CWColormap | CWEventMask, &GLWin.attr);
|
||||
wmProtocols[0] = XInternAtom(GLWin.evdpy, "WM_DELETE_WINDOW", True);
|
||||
@ -131,7 +123,7 @@ void cX11Window::CreateXWindow(void)
|
||||
|
||||
// Create the window
|
||||
GLWin.win = XCreateWindow(GLWin.evdpy, GLWin.parent,
|
||||
GLWin.x, GLWin.y, GLWin.width, GLWin.height, 0,
|
||||
0, 0, 1, 1, 0,
|
||||
GLWin.vi->depth, InputOutput, GLWin.vi->visual,
|
||||
CWBorderPixel | CWBackPixel | CWColormap | CWEventMask, &GLWin.attr);
|
||||
wmProtocols[0] = XInternAtom(GLWin.evdpy, "WM_DELETE_WINDOW", True);
|
||||
|
Reference in New Issue
Block a user