diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2011-01-07 04:57:59 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2011-01-07 04:57:59 +0000 |
| commit | d16357cd5ce810c74fcee602ed13028d397c6254 (patch) | |
| tree | 686b83ec22a0fc123666105afdb7a919f085274b /Source/Plugins/Plugin_VideoSoftware | |
| parent | 49b7da6445013c33a89fa6d68b2b64bcd538c7eb (diff) | |
Add anvideo config option to automatically resize the render window to the size of the game's output resolution. This avoids artifacts that appear when the render target is scaled to fit a window of a different size.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6764 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp index 5630cd6892..77f72ff792 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp @@ -104,7 +104,7 @@ void UpdateFPSDisplay(const char *text) bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _twidth, int _theight) { int xPos, yPos; - g_VideoInitialize.pRequestWindowSize(xPos, yPos, _twidth, _theight); + g_VideoInitialize.pGetWindowSize(xPos, yPos, _twidth, _theight); #if defined(_WIN32) EmuWindow::SetSize(_twidth, _theight); @@ -308,7 +308,7 @@ bool OpenGL_MakeCurrent() #elif defined(_WIN32) return wglMakeCurrent(hDC,hRC) ? true : false; #elif defined(HAVE_X11) && HAVE_X11 - g_VideoInitialize.pRequestWindowSize(GLWin.x, GLWin.y, (int&)GLWin.width, (int&)GLWin.height); + g_VideoInitialize.pGetWindowSize(GLWin.x, GLWin.y, (int&)GLWin.width, (int&)GLWin.height); XMoveResizeWindow(GLWin.dpy, GLWin.win, GLWin.x, GLWin.y, GLWin.width, GLWin.height); return glXMakeCurrent(GLWin.dpy, GLWin.win, GLWin.ctx); #endif |
