Skip to content

Commit

Permalink
Expose updateRGB2PaletteLUT() (#10)
Browse files Browse the repository at this point in the history
This method must be called after updating the palette in order to get
the correct color mappings.
  • Loading branch information
avalonbits authored Apr 25, 2023
1 parent 2726082 commit c8755d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dispdrivers/vgapalettedcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,15 @@ class VGAPalettedController : public VGABaseController {
// abstract method of BitmappedDisplayController
NativePixelFormat nativePixelFormat() { return m_nativePixelFormat; }

// Should be called after the palette is updated.
void updateRGB2PaletteLUT();

protected:

void init();

virtual void setupDefaultPalette() = 0;

void updateRGB2PaletteLUT();
void calculateAvailableCyclesForDrawings();
static void primitiveExecTask(void * arg);

Expand Down

0 comments on commit c8755d3

Please sign in to comment.