mirror of https://github.com/stella-emu/stella.git
Prevent enabling phosphor when cycling through global options (fixes #672)
This commit is contained in:
parent
0a3d18ee65
commit
91ddcaecfa
|
@ -525,8 +525,11 @@ void Console::changePhosphor(int direction)
|
||||||
{
|
{
|
||||||
int blend = BSPF::stringToInt(myProperties.get(PropType::Display_PPBlend));
|
int blend = BSPF::stringToInt(myProperties.get(PropType::Display_PPBlend));
|
||||||
|
|
||||||
blend = BSPF::clamp(blend + direction * 2, 0, 100);
|
if(direction)
|
||||||
myOSystem.frameBuffer().tiaSurface().enablePhosphor(true, blend);
|
{
|
||||||
|
blend = BSPF::clamp(blend + direction * 2, 0, 100);
|
||||||
|
myOSystem.frameBuffer().tiaSurface().enablePhosphor(true, blend);
|
||||||
|
}
|
||||||
|
|
||||||
ostringstream val;
|
ostringstream val;
|
||||||
val << blend;
|
val << blend;
|
||||||
|
|
Loading…
Reference in New Issue