public static void InitializePalette() { NTSCPaletteGenerator.brightness = Settings.Palette_NTSC_brightness; NTSCPaletteGenerator.contrast = Settings.Palette_NTSC_contrast; NTSCPaletteGenerator.gamma = Settings.Palette_NTSC_gamma; NTSCPaletteGenerator.hue_tweak = Settings.Palette_NTSC_hue_tweak; NTSCPaletteGenerator.saturation = Settings.Palette_NTSC_saturation; PALBPaletteGenerator.brightness = Settings.Palette_PALB_brightness; PALBPaletteGenerator.contrast = Settings.Palette_PALB_contrast; PALBPaletteGenerator.gamma = Settings.Palette_PALB_gamma; PALBPaletteGenerator.hue_tweak = Settings.Palette_PALB_hue_tweak; PALBPaletteGenerator.saturation = Settings.Palette_PALB_saturation; if (Settings.Palette_AutoSelect) { switch (NesEmu.TVFormat) { case TVSystem.NTSC: NesEmu.SetPalette(NTSCPaletteGenerator.GeneratePalette()); break; case TVSystem.DENDY: case TVSystem.PALB: NesEmu.SetPalette(PALBPaletteGenerator.GeneratePalette()); break; } } else { if (Settings.Palette_UseNTSCPalette) { NesEmu.SetPalette(NTSCPaletteGenerator.GeneratePalette()); } else { NesEmu.SetPalette(PALBPaletteGenerator.GeneratePalette()); } } }
private void TestPALBPalette() { NesEmu.SetPalette(PALBPaletteGenerator.GeneratePalette()); }
private void TestNTSCPalette() { NesEmu.SetPalette(NTSCPaletteGenerator.GeneratePalette()); }