mirror of
https://github.com/correl/mage.git
synced 2025-04-09 01:01:06 -09:00
Fix exception
This commit is contained in:
parent
46db9973c9
commit
830874bc50
1 changed files with 3 additions and 3 deletions
|
@ -74,9 +74,9 @@ public final class CardRendererUtils {
|
|||
int b = c.getBlue();
|
||||
int alpha = c.getAlpha();
|
||||
|
||||
int plus_r = (int) ((255 - r) / 2);
|
||||
int plus_g = (int) ((255 - g) / 2);
|
||||
int plus_b = (int) ((255 - b) / 2);
|
||||
int plus_r = (int) (Math.min (255 - r, r) / 2);
|
||||
int plus_g = (int) (Math.min (255 - g, g) / 2);
|
||||
int plus_b = (int) (Math.min (255 - b, b) / 2);
|
||||
|
||||
return new Color(r - plus_r,
|
||||
g - plus_g,
|
||||
|
|
Loading…
Add table
Reference in a new issue