git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'subtree'
[fanfix.git]
/
src
/
jexer
/
backend
/
LogicalScreen.java
diff --git
a/src/jexer/backend/LogicalScreen.java
b/src/jexer/backend/LogicalScreen.java
index 46776fb2b0685ef9df5b7f3e623336e81f1dd487..22b7e95f6564aad97431ca2e60a2fec09e9d2365 100644
(file)
--- a/
src/jexer/backend/LogicalScreen.java
+++ b/
src/jexer/backend/LogicalScreen.java
@@
-1122,11
+1122,11
@@
public class LogicalScreen implements Screen {
int endX = x1;
int endY = y1;
int endX = x1;
int endY = y1;
- if (((x1 < x0) && (y1
<
= y0))
- || (
(x1 <= x0) && (y1 < y0)
)
+ if (((x1 < x0) && (y1
=
= y0))
+ || (
y1 < y0
)
) {
) {
- // The user dragged from bottom-
right to top-left. Reverse the
- // coordinates for the inverted section.
+ // The user dragged from bottom-
to-top and/or right-to-left.
+ //
Reverse the
coordinates for the inverted section.
startX = x1;
startY = y1;
endX = x0;
startX = x1;
startY = y1;
endX = x0;
@@
-1181,11
+1181,11
@@
public class LogicalScreen implements Screen {
int endX = x1;
int endY = y1;
int endX = x1;
int endY = y1;
- if (((x1 < x0) && (y1
<
= y0))
- || (
(x1 <= x0) && (y1 < y0)
)
+ if (((x1 < x0) && (y1
=
= y0))
+ || (
y1 < y0
)
) {
) {
- // The user dragged from bottom-
right to top-left. Reverse the
- // coordinates for the inverted section.
+ // The user dragged from bottom-
to-top and/or right-to-left.
+ //
Reverse the
coordinates for the inverted section.
startX = x1;
startY = y1;
endX = x0;
startX = x1;
startY = y1;
endX = x0;