MCPcopy Create free account
hub / github.com/0ldsk00l/nestopia / LoadCustomPalette

Method LoadCustomPalette

source/core/NstVideoRenderer.cpp:763–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761 }
762
763 Result Renderer::LoadCustomPalette(const byte (*colors)[3],const bool emphasis)
764 {
765 const Result result = palette.LoadCustom( colors, emphasis );
766
767 if (NES_SUCCEEDED(result) && result != RESULT_NOP && palette.GetType() == PALETTE_CUSTOM)
768 state.update |= uint(State::UPDATE_PALETTE|State::UPDATE_FILTER);
769
770 return result;
771 }
772
773 void Renderer::ResetCustomPalette()
774 {

Callers 1

SetCustomMethod · 0.80

Calls 2

LoadCustomMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected