mirror of https://github.com/stella-emu/stella.git
Fixed minor compile warnings in Visual Studio.
This commit is contained in:
parent
f8ea61875c
commit
c8abbf50fb
|
@ -32,7 +32,7 @@ TIASurface::TIASurface(OSystem& system)
|
||||||
myTIA(nullptr),
|
myTIA(nullptr),
|
||||||
myFilterType(kNormal),
|
myFilterType(kNormal),
|
||||||
myUsePhosphor(false),
|
myUsePhosphor(false),
|
||||||
myPhosphorPercent(0.77),
|
myPhosphorPercent(0.77f),
|
||||||
myScanlinesEnabled(false),
|
myScanlinesEnabled(false),
|
||||||
myPalette(nullptr)
|
myPalette(nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -120,7 +120,7 @@ class TIASurface
|
||||||
*/
|
*/
|
||||||
uInt8 getPhosphor(uInt8 c1, uInt8 c2) const {
|
uInt8 getPhosphor(uInt8 c1, uInt8 c2) const {
|
||||||
// Use maximum of current and decayed previous values
|
// Use maximum of current and decayed previous values
|
||||||
c2 *= myPhosphorPercent;
|
c2 = uInt8(c2 * myPhosphorPercent);
|
||||||
if(c1 > c2) return c1; // raise (assumed immediate)
|
if(c1 > c2) return c1; // raise (assumed immediate)
|
||||||
else return c2; // decay
|
else return c2; // decay
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue