aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2007-05-12 13:02:29 +0000
committerCarsten Weisse <[email protected]>2007-05-12 13:02:29 +0000
commit8388a60a76c3272fd3972b5cad862c676701857a (patch)
treeea1df965b3c3495374e1b62f3934055af835c0a5 /src/jake2
parent9be535397a8566a7f3625707a67cdc8f1d16e535 (diff)
bugfix: center the mouse correct
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/sys/JOGLKBD.java4
1 files changed, 2 insertions, 2 deletions
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();