Explorar el Código

font has full alpha channel again

Kajetan Johannes Hammerle hace 4 años
padre
commit
43239d8f50
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/me/hammerle/snuviengine/api/FontRenderer.java

+ 2 - 2
src/me/hammerle/snuviengine/api/FontRenderer.java

@@ -97,7 +97,7 @@ public final class FontRenderer {
 
     private float addStringToBuffer(float x, float y, boolean shadow, String text) {
         float oldX = x;
-        setColor(0xFFFFFF, shadow);
+        setColor(0xFFFFFFFF, shadow);
         int index = 0;
         while(true) {
             index += consumeColor(text, index, shadow);
@@ -143,7 +143,7 @@ public final class FontRenderer {
     }
 
     private int parseColor(String text, int index) {
-        int c = 0;
+        int c = 0xFF000000;
         c += getCharValue(text.charAt(index)) << 4;
         c += getCharValue(text.charAt(index + 1));
         c += getCharValue(text.charAt(index + 2)) << 12;