From c8755d33edc54a96fbfa66f338853009d3beb3c8 Mon Sep 17 00:00:00 2001 From: Igor Cananea Date: Tue, 25 Apr 2023 16:31:28 -0400 Subject: [PATCH] Expose updateRGB2PaletteLUT() (#10) This method must be called after updating the palette in order to get the correct color mappings. --- src/dispdrivers/vgapalettedcontroller.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispdrivers/vgapalettedcontroller.h b/src/dispdrivers/vgapalettedcontroller.h index 81621d5ac..63355b2ae 100644 --- a/src/dispdrivers/vgapalettedcontroller.h +++ b/src/dispdrivers/vgapalettedcontroller.h @@ -107,6 +107,8 @@ class VGAPalettedController : public VGABaseController { // abstract method of BitmappedDisplayController NativePixelFormat nativePixelFormat() { return m_nativePixelFormat; } + // Should be called after the palette is updated. + void updateRGB2PaletteLUT(); protected: @@ -114,7 +116,6 @@ class VGAPalettedController : public VGABaseController { virtual void setupDefaultPalette() = 0; - void updateRGB2PaletteLUT(); void calculateAvailableCyclesForDrawings(); static void primitiveExecTask(void * arg);