Просмотр исходного кода

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.
archshift 11 лет назад
Родитель
Сommit
36c04ae2ee
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/citra/emu_window/emu_window_glfw.cpp

+ 1 - 1
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