MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUI_SetNTSCTH

Function FCEUI_SetNTSCTH

src/palette.cpp:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void FCEUI_SetNTSCTH(bool en, int tint, int hue)
341{
342 ntsctint=tint;
343 ntschue=hue;
344 ntsccol_enable = en;
345 FCEU_ResetPalette();
346}
347
348//this prepares the 'deemph' palette which was a horrible idea to jam a single deemph palette into 0xC0-0xFF of the 8bpp palette.
349//its needed for GUI and lua and stuff, so we're leaving it, despite having a newer codepath for applying deemph

Callers 12

LoadConfigFunction · 0.85
PaletteConCallBFunction · 0.85
UpdateEMUCoreFunction · 0.85
hueChangedMethod · 0.85
tintChangedMethod · 0.85
deemphswap_ChangedMethod · 0.85
use_NTSC_ChangedMethod · 0.85
setTintFunction · 0.85
setHueFunction · 0.85
UpdateEMUCoreFunction · 0.85
CLImainFunction · 0.85

Calls 1

FCEU_ResetPaletteFunction · 0.85

Tested by

no test coverage detected