mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 11:50:19 -06:00
fix artifacts
This commit is contained in:
parent
5d4eca6a7d
commit
ca1cabfd68
2 changed files with 16 additions and 0 deletions
|
@ -2295,6 +2295,8 @@ public class TApplication implements Runnable {
|
|||
}
|
||||
if (customMousePointer == null) {
|
||||
mouseStyle = activeWidget.getMouseStyle();
|
||||
} else {
|
||||
activeWidget.getWindow().setTackboardsDirty();
|
||||
}
|
||||
MousePointer newCustomWidgetMousePointer;
|
||||
newCustomWidgetMousePointer = activeWidget.getCustomMousePointer();
|
||||
|
@ -2309,9 +2311,11 @@ public class TApplication implements Runnable {
|
|||
pixelY -= newCustomWidgetMousePointer.getHotspotY();
|
||||
newCustomWidgetMousePointer.setX(pixelX);
|
||||
newCustomWidgetMousePointer.setY(pixelY);
|
||||
activeWidget.getWindow().setTackboardsDirty();
|
||||
doRepaint();
|
||||
} else {
|
||||
if (customWidgetMousePointer != null) {
|
||||
activeWidget.getWindow().setTackboardsDirty();
|
||||
doRepaint();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1619,4 +1619,16 @@ public class TWindow extends TWidget {
|
|||
overlay.addItem(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark the underlay and overlay dirty.
|
||||
*/
|
||||
public void setTackboardsDirty() {
|
||||
if (underlay != null) {
|
||||
underlay.setDirty();
|
||||
}
|
||||
if (overlay != null) {
|
||||
overlay.setDirty();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue