diff --git a/src/main/java/featurecat/lizzie/gui/BoardRenderer.java b/src/main/java/featurecat/lizzie/gui/BoardRenderer.java index 76351c04d..959617aa8 100644 --- a/src/main/java/featurecat/lizzie/gui/BoardRenderer.java +++ b/src/main/java/featurecat/lizzie/gui/BoardRenderer.java @@ -872,7 +872,7 @@ private void drawLeelazSuggestionsBackgroundShadow(Graphics2D g, List float brightness = 0.85f; float alpha = minAlpha - + (maxAlpha - minAlpha) + + max(0, maxAlpha - minAlpha) * max( 0, (float) @@ -1776,7 +1776,7 @@ private boolean showCoordinates() { } public void increaseMaxAlpha(int k) { - maxAlpha = min(maxAlpha + k, 255); + maxAlpha = max(0, min(maxAlpha + k, 255)); uiPersist.put("max-alpha", maxAlpha); }