Fixed minor compile warnings in Visual Studio.

This commit is contained in:
Stephen Anthony 2017-05-28 18:51:46 -02:30
parent f8ea61875c
commit c8abbf50fb
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ TIASurface::TIASurface(OSystem& system)
myTIA(nullptr),
myFilterType(kNormal),
myUsePhosphor(false),
myPhosphorPercent(0.77),
myPhosphorPercent(0.77f),
myScanlinesEnabled(false),
myPalette(nullptr)
{

View File

@ -120,7 +120,7 @@ class TIASurface
*/
uInt8 getPhosphor(uInt8 c1, uInt8 c2) const {
// Use maximum of current and decayed previous values
c2 *= myPhosphorPercent;
c2 = uInt8(c2 * myPhosphorPercent);
if(c1 > c2) return c1; // raise (assumed immediate)
else return c2; // decay
}