*** empty log message ***
This commit is contained in:
parent
43139c9ea9
commit
370831cada
|
@ -271,8 +271,8 @@ public class Mouse {
|
||||||
created = true;
|
created = true;
|
||||||
currentCursor = null;
|
currentCursor = null;
|
||||||
dx = dy = dwheel = 0;
|
dx = dy = dwheel = 0;
|
||||||
width = Window.getWidth();
|
width = Window.getWidth() << 16;
|
||||||
height = Window.getHeight();
|
height = Window.getHeight() << 16;
|
||||||
x = width / 2;
|
x = width / 2;
|
||||||
y = height / 2;
|
y = height / 2;
|
||||||
|
|
||||||
|
@ -382,6 +382,8 @@ public class Mouse {
|
||||||
} else if (x >= width) {
|
} else if (x >= width) {
|
||||||
scrollX = x - width;
|
scrollX = x - width;
|
||||||
x = width - 1;
|
x = width - 1;
|
||||||
|
} else {
|
||||||
|
scrollX = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y < 0) {
|
if (y < 0) {
|
||||||
|
@ -390,7 +392,12 @@ public class Mouse {
|
||||||
} else if (y >= height) {
|
} else if (y >= height) {
|
||||||
scrollY = y - height;
|
scrollY = y - height;
|
||||||
y = height - 1;
|
y = height - 1;
|
||||||
|
} else {
|
||||||
|
scrollY = 0;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
scrollX = 0;
|
||||||
|
scrollY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (readBuffer != null) {
|
if (readBuffer != null) {
|
||||||
|
|
Loading…
Reference in New Issue