mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
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.
This commit is contained in:
parent
d32ea3b977
commit
36c04ae2ee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
/// Whether the window is still open, and a close request hasn't yet been sent
|
||||||
const bool EmuWindow_GLFW::IsOpen() {
|
const bool EmuWindow_GLFW::IsOpen() {
|
||||||
return glfwWindowShouldClose(m_render_window) != 0;
|
return glfwWindowShouldClose(m_render_window) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EmuWindow_GLFW constructor
|
/// EmuWindow_GLFW constructor
|
||||||
|
|
Loading…
Reference in a new issue