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
make Windows look like X11, why does this work
[fanfix.git]
/
src
/
jexer
/
TVScroller.java
diff --git
a/src/jexer/TVScroller.java
b/src/jexer/TVScroller.java
index d9d5ec852bb1495c7ce4fed35a9498f7d4ab1775..fd806e712b9b8e7883cd79cc276bb9f175f53fb1 100644
(file)
--- a/
src/jexer/TVScroller.java
+++ b/
src/jexer/TVScroller.java
@@
-158,12
+158,7
@@
public final class TVScroller extends TWidget {
final int height) {
// Set parent and window
final int height) {
// Set parent and window
- super(parent);
-
- setX(x);
- setY(y);
- setHeight(height);
- setWidth(1);
+ super(parent, x, y, 1, height);
}
/**
}
/**
@@
-333,7
+328,7
@@
public final class TVScroller extends TWidget {
return;
}
return;
}
- if ((mouse.
get
Mouse1()) &&
+ if ((mouse.
is
Mouse1()) &&
(inScroll) &&
(mouse.getY() > 0) &&
(mouse.getY() < getHeight() - 1)
(inScroll) &&
(mouse.getY() > 0) &&
(mouse.getY() < getHeight() - 1)