Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Jan 31, 2021
2 parents ce5bbda + 789cdba commit 1d639c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/featurecat/lizzie/gui/BoardRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ private void drawLeelazSuggestionsBackgroundShadow(Graphics2D g, List<TextData>
float brightness = 0.85f;
float alpha =
minAlpha
+ (maxAlpha - minAlpha)
+ max(0, maxAlpha - minAlpha)
* max(
0,
(float)
Expand Down Expand Up @@ -1821,7 +1821,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);
}

Expand Down

0 comments on commit 1d639c9

Please sign in to comment.