|
@@ -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;
|