From cb6b9cff32eb9d6ecc5a15ba898dbd17fe52f4f6 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 2 Jun 2019 09:32:26 +0200 Subject: [PATCH] add overscan message fix scanlines message --- src/emucore/FrameBuffer.cxx | 3 +++ src/emucore/TIASurface.cxx | 11 +++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/emucore/FrameBuffer.cxx b/src/emucore/FrameBuffer.cxx index fc22294e9..929872bc2 100644 --- a/src/emucore/FrameBuffer.cxx +++ b/src/emucore/FrameBuffer.cxx @@ -761,6 +761,9 @@ void FrameBuffer::changeOverscan(int direction) // issue a complete framebuffer re-initialization myOSystem.createFrameBuffer(); } + ostringstream msg; + msg << "Overscan at " << overscan << "%"; + showMessage(msg.str()); } } diff --git a/src/emucore/TIASurface.cxx b/src/emucore/TIASurface.cxx index bbf295d15..3c8d58822 100644 --- a/src/emucore/TIASurface.cxx +++ b/src/emucore/TIASurface.cxx @@ -184,14 +184,9 @@ void TIASurface::setNTSC(NTSCFilter::Preset preset, bool show) void TIASurface::setScanlineIntensity(int amount) { ostringstream buf; - if(ntscEnabled()) - { - uInt32 intensity = enableScanlines(amount); - buf << "Scanline intensity at " << intensity << "%"; - myOSystem.settings().setValue("tv.scanlines", intensity); - } - else - buf << "Scanlines only available in TV filtering mode"; + uInt32 intensity = enableScanlines(amount); + buf << "Scanline intensity at " << intensity << "%"; + myOSystem.settings().setValue("tv.scanlines", intensity); myFB.showMessage(buf.str()); }