summaryrefslogtreecommitdiffstats
path: root/src/citra/emu_window/emu_window_glfw.cpp
diff options
context:
space:
mode:
authorZaneo <gareth.higgins@ryerson.ca>2015-04-14 06:06:44 +0200
committerZaneo <gareth.higgins@ryerson.ca>2015-05-02 05:52:33 +0200
commitb8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5 (patch)
treefdeec9f5d356b84f21c92ddb4b469aedb11e93db /src/citra/emu_window/emu_window_glfw.cpp
parentMerge pull request #715 from purpasmart96/configmem_typo_fix (diff)
downloadyuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.tar
yuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.tar.gz
yuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.tar.bz2
yuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.tar.lz
yuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.tar.xz
yuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.tar.zst
yuzu-b8328593fe3d60ecb066ad0959d8c1e8dfb4d3c5.zip
Diffstat (limited to '')
-rw-r--r--src/citra/emu_window/emu_window_glfw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp
index 997e3bc7d..f879ee7ca 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::OnMouseButtonEvent(GLFWwindow* win, int button, int action,
}
void EmuWindow_GLFW::OnCursorPosEvent(GLFWwindow* win, double x, double y) {
- GetEmuWindow(win)->TouchMoved(static_cast<unsigned>(x), static_cast<unsigned>(y));
+ GetEmuWindow(win)->TouchMoved(static_cast<unsigned>(std::max(x, 0.0)), static_cast<unsigned>(std::max(y, 0.0)));
}
/// Called by GLFW when a key event occurs