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

Method hueChanged

src/drivers/Qt/PaletteConf.cpp:359–378  ·  view source on GitHub ↗

----------------------------------------------------

Source from the content-addressed store, hash-verified

357}
358//----------------------------------------------------
359void PaletteConfDialog_t::hueChanged(int v)
360{
361 int c, t;
362 char stmp[64];
363
364 sprintf(stmp, "Hue: %3i", v);
365
366 hueFrame->setTitle(stmp);
367
368 g_config->setOption("SDL.Hue", v);
369 g_config->save();
370 g_config->getOption("SDL.Tint", &t);
371 g_config->getOption("SDL.NTSCpalette", &c);
372
373 if (fceuWrapperTryLock())
374 {
375 FCEUI_SetNTSCTH(c, t, v);
376 fceuWrapperUnLock();
377 }
378}
379//----------------------------------------------------
380void PaletteConfDialog_t::tintChanged(int v)
381{

Callers

nothing calls this directly

Calls 6

fceuWrapperTryLockFunction · 0.85
FCEUI_SetNTSCTHFunction · 0.85
fceuWrapperUnLockFunction · 0.85
setOptionMethod · 0.80
getOptionMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected