diff --git a/src/libretro/StellaLIBRETRO.cxx b/src/libretro/StellaLIBRETRO.cxx index 06cea0d66..cd4152983 100644 --- a/src/libretro/StellaLIBRETRO.cxx +++ b/src/libretro/StellaLIBRETRO.cxx @@ -41,7 +41,7 @@ StellaLIBRETRO::StellaLIBRETRO() video_aspect_pal = 0; video_palette = "standard"; - video_filter = NTSCFilter::Preset::OFF; + video_filter = 0; video_ready = false; audio_samples = 0; @@ -108,7 +108,7 @@ bool StellaLIBRETRO::create(bool logging) //fastscbios // Fast loading of Supercharger BIOS - settings.setValue("tv.filter", static_cast(video_filter)); + settings.setValue("tv.filter", video_filter); settings.setValue("tv.phosphor", video_phosphor); settings.setValue("tv.phosblend", video_phosphor_blend); @@ -131,6 +131,7 @@ bool StellaLIBRETRO::create(bool logging) if(myOSystem->createConsole(rom) != EmptyString) return false; + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if(video_phosphor == "never") setVideoPhosphor(1, video_phosphor_blend); @@ -345,7 +346,9 @@ void StellaLIBRETRO::setConsoleFormat(uInt32 mode) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void StellaLIBRETRO::setVideoFilter(uInt32 mode) { - if (system_ready && mode <= 5) + video_filter = mode; + + if (system_ready) { myOSystem->settings().setValue("tv.filter", mode); myOSystem->frameBuffer().tiaSurface().setNTSC(static_cast(mode)); diff --git a/src/libretro/StellaLIBRETRO.hxx b/src/libretro/StellaLIBRETRO.hxx index 9305741cd..d7dfd17b3 100644 --- a/src/libretro/StellaLIBRETRO.hxx +++ b/src/libretro/StellaLIBRETRO.hxx @@ -160,7 +160,7 @@ class StellaLIBRETRO uInt32 video_aspect_ntsc; uInt32 video_aspect_pal; - NTSCFilter::Preset video_filter; + uInt32 video_filter; string audio_mode;