Skip to content

Commit

Permalink
Bug correction: circular target is visible during pause
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisMot committed Mar 28, 2022
1 parent 2097148 commit e0234c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/fr/lgi2p/digit/conf/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class Configuration {
private int autoStart; // seconds before auto start
private int cycleMaxNumber; // Move-Rest cycle number
private int cycleDuration; // seconds for a Move or Rest (half-cycle duration, in fact...)
private boolean isTargetHiddenDuringPause = false;

// flags
private boolean isWithLSL = false;
Expand Down Expand Up @@ -947,4 +948,8 @@ public void setTabletSize_mm(int w, int h) {

}

public boolean isTargetHiddenDuringPause() {
return isTargetHiddenDuringPause;
}

}
9 changes: 7 additions & 2 deletions src/fr/lgi2p/digit/ui/DisplayTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,13 @@ private void drawTarget(Graphics g) {
showCircularTarget(g);
hideCenterTarget(g);
} else {
hideCircularTarget(g);
showCenterTarget(g);
if (configuration.isTargetHiddenDuringPause()) {
hideCircularTarget(g);
showCenterTarget(g);
} else {
showCircularTarget(g);
hideCenterTarget(g);
}
}
} else {
if (configuration.getStep() == "END_PAUSE") {
Expand Down

0 comments on commit e0234c0

Please sign in to comment.