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
This commit is contained in:
stephena 2012-05-08 13:33:36 +00:00
parent 9c17d43c6f
commit 7d3ea13a01
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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 <filter> Use the specified filter in emulation mode\n"