From 36c04ae2ee565199d09157dec36cdfdfc7dcd11b Mon Sep 17 00:00:00 2001 From: archshift Date: Sun, 19 Oct 2014 00:53:49 -0700 Subject: emu_window_glfw.cpp: Fixed graceful quitting In PR #143, the name of the function IsOpen was originally ShouldClose, but was changed. The function's caller was changed to reflect this, but the return value wasn't. --- src/citra/emu_window/emu_window_glfw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/citra/emu_window') diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp index 079c5356..0c774bbc 100644 --- a/src/citra/emu_window/emu_window_glfw.cpp +++ b/src/citra/emu_window/emu_window_glfw.cpp @@ -31,7 +31,7 @@ void EmuWindow_GLFW::OnKeyEvent(GLFWwindow* win, int key, int scancode, int acti /// Whether the window is still open, and a close request hasn't yet been sent const bool EmuWindow_GLFW::IsOpen() { - return glfwWindowShouldClose(m_render_window) != 0; + return glfwWindowShouldClose(m_render_window) == 0; } /// EmuWindow_GLFW constructor -- cgit v1.2.3