Prevent enabling phosphor when cycling through global options (fixes #672)

This commit is contained in:
Thomas Jentzsch 2020-07-16 17:25:33 +02:00
parent 0a3d18ee65
commit 91ddcaecfa
1 changed files with 5 additions and 2 deletions

View File

@ -525,8 +525,11 @@ void Console::changePhosphor(int direction)
{
int blend = BSPF::stringToInt(myProperties.get(PropType::Display_PPBlend));
if(direction)
{
blend = BSPF::clamp(blend + direction * 2, 0, 100);
myOSystem.frameBuffer().tiaSurface().enablePhosphor(true, blend);
}
ostringstream val;
val << blend;