diff --git a/src/common/FBBackendSDL.cxx b/src/common/FBBackendSDL.cxx index b9ed3a08f..6ad892616 100644 --- a/src/common/FBBackendSDL.cxx +++ b/src/common/FBBackendSDL.cxx @@ -598,10 +598,7 @@ unique_ptr FBBackendSDL::createSurface( { unique_ptr s = make_unique (const_cast(*this), w, h, inter, data); - - // by default, disable shading (use full alpha) - s->enableBlend(false); - s->setBlendLevel(100); + s->setBlendLevel(100); // by default, disable shading (use full alpha) return s; } diff --git a/src/common/PhosphorHandler.hxx b/src/common/PhosphorHandler.hxx index 9de73b796..b64a19324 100644 --- a/src/common/PhosphorHandler.hxx +++ b/src/common/PhosphorHandler.hxx @@ -64,15 +64,15 @@ class PhosphorHandler static constexpr uInt32 getPixel(const uInt32 c, const uInt32 p) { // Mix current calculated frame with previous displayed frame - const auto rc = static_cast(c >> 16), + const auto rc = static_cast(c), gc = static_cast(c >> 8), - bc = static_cast(c), - rp = static_cast(p >> 16), + bc = static_cast(c >> 16), + rp = static_cast(p), gp = static_cast(p >> 8), - bp = static_cast(p); + bp = static_cast(p >> 16); - return (ourPhosphorLUT[rc][rp] << 16) | (ourPhosphorLUT[gc][gp] << 8) | - ourPhosphorLUT[bc][bp]; + return ourPhosphorLUT[rc][rp] | (ourPhosphorLUT[gc][gp] << 8) | + (ourPhosphorLUT[bc][bp] << 16); } private: