From c8abbf50fb82c0ed8922386bf2db21e8a2e32d3e Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 28 May 2017 18:51:46 -0230 Subject: [PATCH] Fixed minor compile warnings in Visual Studio. --- src/emucore/TIASurface.cxx | 2 +- src/emucore/TIASurface.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emucore/TIASurface.cxx b/src/emucore/TIASurface.cxx index bf3bd7336..7674e3400 100644 --- a/src/emucore/TIASurface.cxx +++ b/src/emucore/TIASurface.cxx @@ -32,7 +32,7 @@ TIASurface::TIASurface(OSystem& system) myTIA(nullptr), myFilterType(kNormal), myUsePhosphor(false), - myPhosphorPercent(0.77), + myPhosphorPercent(0.77f), myScanlinesEnabled(false), myPalette(nullptr) { diff --git a/src/emucore/TIASurface.hxx b/src/emucore/TIASurface.hxx index 39484eb6b..41cf1998c 100644 --- a/src/emucore/TIASurface.hxx +++ b/src/emucore/TIASurface.hxx @@ -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 }