From 7d3ea13a014d663e44b98b34e8e22a4715eb6ea9 Mon Sep 17 00:00:00 2001 From: stephena Date: Tue, 8 May 2012 13:33:36 +0000 Subject: [PATCH] TV scanline intensity range is now 0 - 100%, where 0 means scanlines are essentially invisible. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2461 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/FrameBufferGL.cxx | 6 +++--- src/emucore/Settings.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/FrameBufferGL.cxx b/src/common/FrameBufferGL.cxx index d77ec308c..ed624b4fc 100644 --- a/src/common/FrameBufferGL.cxx +++ b/src/common/FrameBufferGL.cxx @@ -393,13 +393,13 @@ void FrameBufferGL::enableNTSC(bool enable) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uInt32 FrameBufferGL::changeScanlines(int relative, int absolute) { - uInt32 intensity = myTiaSurface->myScanlineIntensityI; + int intensity = myTiaSurface->myScanlineIntensityI; if(myTiaSurface) { if(relative == 0) intensity = absolute; else intensity += relative; - intensity = BSPF_max(20u, intensity); - intensity = BSPF_min(100u, intensity); + intensity = BSPF_max(0, intensity); + intensity = BSPF_min(100, intensity); myTiaSurface->myScanlineIntensityI = (GLuint)intensity; myTiaSurface->myScanlineIntensityF = (GLfloat)intensity / 100; diff --git a/src/emucore/Settings.cxx b/src/emucore/Settings.cxx index 0899946c7..1c7ca0f80 100644 --- a/src/emucore/Settings.cxx +++ b/src/emucore/Settings.cxx @@ -345,7 +345,7 @@ void Settings::usage() << " -gl_vbo <1|0> Enable 'vertex buffer objects'\n" << endl << " -tv_filter <0-5> Set TV effects off (0) or to specified mode (1-5)\n" - << " -tv_scanlines <20-100> Set scanline intensity to percentage\n" + << " -tv_scanlines <0-100> Set scanline intensity to percentage (0 disables completely)\n" << endl #endif << " -tia_filter Use the specified filter in emulation mode\n"