aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/events/sdl/sdl-events.cpp4
-rw-r--r--backends/events/sdl/sdl-events.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp
index 50235171f5..29be7d4e74 100644
--- a/backends/events/sdl/sdl-events.cpp
+++ b/backends/events/sdl/sdl-events.cpp
@@ -287,8 +287,8 @@ void SdlEventSource::updateKbdMouse() {
}
bool SdlEventSource::handleKbdMouse(Common::Event &event) {
- int16 oldKmX = _km.x;
- int16 oldKmY = _km.y;
+ int32 oldKmX = _km.x;
+ int32 oldKmY = _km.y;
updateKbdMouse();
diff --git a/backends/events/sdl/sdl-events.h b/backends/events/sdl/sdl-events.h
index 8ee51147a4..c2ae0023ce 100644
--- a/backends/events/sdl/sdl-events.h
+++ b/backends/events/sdl/sdl-events.h
@@ -66,7 +66,8 @@ protected:
//@{
struct KbdMouse {
- int16 x, y, x_vel, y_vel, x_max, y_max, x_down_count, y_down_count, joy_x, joy_y;
+ int32 x, y;
+ int16 x_vel, y_vel, x_max, y_max, x_down_count, y_down_count, joy_x, joy_y;
uint32 last_time, delay_time, x_down_time, y_down_time;
bool modifier;
};