Browse Source

font has full alpha channel again

Kajetan Johannes Hammerle 4 years ago
parent
commit
43239d8f50
1 changed files with 2 additions and 2 deletions
  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) {
     private float addStringToBuffer(float x, float y, boolean shadow, String text) {
         float oldX = x;
         float oldX = x;
-        setColor(0xFFFFFF, shadow);
+        setColor(0xFFFFFFFF, shadow);
         int index = 0;
         int index = 0;
         while(true) {
         while(true) {
             index += consumeColor(text, index, shadow);
             index += consumeColor(text, index, shadow);
@@ -143,7 +143,7 @@ public final class FontRenderer {
     }
     }
 
 
     private int parseColor(String text, int index) {
     private int parseColor(String text, int index) {
-        int c = 0;
+        int c = 0xFF000000;
         c += getCharValue(text.charAt(index)) << 4;
         c += getCharValue(text.charAt(index)) << 4;
         c += getCharValue(text.charAt(index + 1));
         c += getCharValue(text.charAt(index + 1));
         c += getCharValue(text.charAt(index + 2)) << 12;
         c += getCharValue(text.charAt(index + 2)) << 12;