From 370831cadaa885a76700b60f5182ec742cb2a6a2 Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Mon, 14 Jun 2004 19:03:33 +0000 Subject: [PATCH] *** empty log message *** --- src/java/org/lwjgl/input/Mouse.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/java/org/lwjgl/input/Mouse.java b/src/java/org/lwjgl/input/Mouse.java index d1ca0f30..795ffd50 100644 --- a/src/java/org/lwjgl/input/Mouse.java +++ b/src/java/org/lwjgl/input/Mouse.java @@ -271,8 +271,8 @@ public class Mouse { created = true; currentCursor = null; dx = dy = dwheel = 0; - width = Window.getWidth(); - height = Window.getHeight(); + width = Window.getWidth() << 16; + height = Window.getHeight() << 16; x = width / 2; y = height / 2; @@ -382,6 +382,8 @@ public class Mouse { } else if (x >= width) { scrollX = x - width; x = width - 1; + } else { + scrollX = 0; } if (y < 0) { @@ -390,7 +392,12 @@ public class Mouse { } else if (y >= height) { scrollY = y - height; y = height - 1; + } else { + scrollY = 0; } + } else { + scrollX = 0; + scrollY = 0; } if (readBuffer != null) {