From 4a0c2e69db8da68297b04bae88d699515aeea550 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 8 Mar 2015 20:48:02 +0100 Subject: [PATCH] Toto --- src/Cases/CaseColore.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Cases/CaseColore.java b/src/Cases/CaseColore.java index 756eea6..fee593c 100644 --- a/src/Cases/CaseColore.java +++ b/src/Cases/CaseColore.java @@ -11,8 +11,9 @@ public class CaseColore extends CaseAbstraite { } public String affichageSpecial() { - if (this.couleur.getRGB() < 0) - return String.valueOf(String.valueOf(this.couleur.getRGB()).charAt(0)); + if (Color.white.getRGB() != this.couleur.getRGB()) { + return this.couleur.getBlue() + this.couleur.getRed() + this.couleur.getGreen() + ""; + } return " "; }