From 5b0965ad6ca7c0d7732aa9515b0062d53c026700 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 17 Sep 2017 17:28:03 +0200 Subject: [PATCH] Fixed the fix. --- src/emucore/TIASurface.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emucore/TIASurface.cxx b/src/emucore/TIASurface.cxx index c312ffcb2..2aaca0e7b 100644 --- a/src/emucore/TIASurface.cxx +++ b/src/emucore/TIASurface.cxx @@ -231,7 +231,8 @@ void TIASurface::enableScanlineInterpolation(bool enable) void TIASurface::enablePhosphor(bool enable, int blend) { myUsePhosphor = enable; - myPhosphorPercent = blend / 100.0; + if(blend >= 0) + myPhosphorPercent = blend / 100.0; myFilter = Filter(enable ? uInt8(myFilter) | 0x01 : uInt8(myFilter) & 0x10); myTiaSurface->setDirty();