diff --git a/src/sys/graphics/objgfx30.cpp b/src/sys/graphics/objgfx30.cpp index a115d45..108bc1a 100755 --- a/src/sys/graphics/objgfx30.cpp +++ b/src/sys/graphics/objgfx30.cpp @@ -161,6 +161,14 @@ return lastclr; } // TGfx0::RGB +void TGfx0::setRGBPalette(UInt8 colour, UInt8 red, UInt8 green, UInt8 blue) { + colour = colour & 255; + pal[colour].red = red; + pal[colour].green = green; + pal[colour].blue = blue; + return; +} // TGfx0::setRGBPalette + void TGfx0::unpackRGB(UInt32 colour, UInt8* red, UInt8* green, UInt8* blue) { switch (BPP) { case 8: