1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 11:27:38 +00:00

Add getColour/setColour to the window api

This commit is contained in:
Lignum
2017-05-05 16:14:13 +02:00
parent 56c9dec687
commit b0f0d8fd71
3 changed files with 29 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ public class Terminal
private TextBuffer m_textColour[];
private TextBuffer m_backgroundColour[];
private Palette m_palette;
private final Palette m_palette;
private boolean m_changed;

View File

@@ -82,8 +82,7 @@ public class Palette
{
if(i >= 0 && i < colours.length )
{
Colour c = Colour.values()[ i ];
colours[i] = new PaletteColour( c.getR(), c.getG(), c.getB() );
setColour( i, Colour.values()[ i ] );
}
}