From 8388a60a76c3272fd3972b5cad862c676701857a Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sat, 12 May 2007 13:02:29 +0000 Subject: bugfix: center the mouse correct --- src/jake2/sys/JOGLKBD.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jake2/sys') diff --git a/src/jake2/sys/JOGLKBD.java b/src/jake2/sys/JOGLKBD.java index 59b3361..c7da129 100644 --- a/src/jake2/sys/JOGLKBD.java +++ b/src/jake2/sys/JOGLKBD.java @@ -93,8 +93,8 @@ final public class JOGLKBD extends KBD while (c != null) { if (c instanceof Container) { Insets insets = ((Container)c).getInsets(); - win_x += insets.left; - win_y += insets.top; + win_x += insets.left / 2; + win_y += insets.top / 2; } win_x += c.getX(); win_y += c.getY(); -- cgit v1.2.3