Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ToWipf committed Aug 28, 2023
1 parent 59dd7b1 commit 8c82456
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/wipf/jasmarty/logic/glowi/GlowiCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public void cls() {
for (int y = 0; y < GlowiService.SIZE; y++) {
GlowiData m = new GlowiData();
m.funktion = "N";
m.farbe_R = 1;
m.farbe_G = 1;
m.farbe_B = 1;
m.farbe_R = 0;
m.farbe_G = 0;
m.farbe_B = 0;
setByXY(x, y, m);
}
}
Expand Down
13 changes: 10 additions & 3 deletions src/main/java/org/wipf/jasmarty/logic/glowi/GlowiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,15 @@ public String getDivScreen() {
*
*/
public void doSet(Integer x, Integer y) {
if (modus == modus_type.MTTT) {
mttt.doSet(x, y);
if (x < SIZE && y < SIZE) {

if (modus == modus_type.MTTT) {
mttt.doSet(x, y);
} else {
rnd.doRNDInput(x, y);
}
} else {
rnd.doRNDInput(x, y);
LOGGER.warn("doSet zu groß: " + x + "/" + y);
}
}

Expand All @@ -111,6 +116,8 @@ public void doSetById(Integer id) {
}

doSet(x, y);
} else {
LOGGER.warn("doSetById zu groß: " + id);
}
}

Expand Down

0 comments on commit 8c82456

Please sign in to comment.