|
@@ -97,27 +97,27 @@ public class AnsiString extends AnsiCharSequence {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Color getComputedForeAt(int index) {
|
|
public Color getComputedForeAt(int index) {
|
|
|
- return scheme.getColor(foreList[index]);
|
|
|
|
|
|
|
+ return scheme.getColor(getForeAt(index));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Color getComputedBackAt(int index) {
|
|
public Color getComputedBackAt(int index) {
|
|
|
- return scheme.getColor(backList[index]);
|
|
|
|
|
|
|
+ return scheme.getColor(getBackAt(index));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Font getComputedFontAt(int index) {
|
|
public Font getComputedFontAt(int index) {
|
|
|
- return scheme.getFont(fontList[index]);
|
|
|
|
|
|
|
+ return scheme.getFont(getFontAt(index));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int getForeAt(int index) {
|
|
public int getForeAt(int index) {
|
|
|
- return foreList[index];
|
|
|
|
|
|
|
+ return foreList[index] & 0xFF;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int getBackAt(int index) {
|
|
public int getBackAt(int index) {
|
|
|
- return backList[index];
|
|
|
|
|
|
|
+ return backList[index] & 0xFF;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -127,7 +127,7 @@ public class AnsiString extends AnsiCharSequence {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int getFontAt(int index) {
|
|
public int getFontAt(int index) {
|
|
|
- return fontList[index];
|
|
|
|
|
|
|
+ return fontList[index] & 0xFF;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|