aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 0b62b4492e..6934d6ed3b 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -746,7 +746,7 @@ void OSystem_SDL::kbd_mouse() {
km.x += km.xv;
km.y += km.yv;
- if (km.x <= 0) {
+ if (km.x < 0) {
km.x = 0;
km.xv = -1;
km.xd = 1;
@@ -756,7 +756,7 @@ void OSystem_SDL::kbd_mouse() {
km.xd = 1;
}
- if (km.y <= 0) {
+ if (km.y < 0) {
km.y = 0;
km.yv = -1;
km.yd = 1;