mirror of https://github.com/stella-emu/stella.git
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:
parent
9c17d43c6f
commit
7d3ea13a01
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue