diff --git a/src/common/FBSurfaceSDL2.cxx b/src/common/FBSurfaceSDL2.cxx index f68b06b4b..4cf940e0b 100644 --- a/src/common/FBSurfaceSDL2.cxx +++ b/src/common/FBSurfaceSDL2.cxx @@ -123,7 +123,7 @@ void FBSurfaceSDL2::setInterpolationAndBlending( { myInterpolate = smoothScale; myBlendEnabled = useBlend; - myBlendAlpha = blendAlpha * 2.55; + myBlendAlpha = uInt8(blendAlpha * 2.55); // Re-create the texture with the new settings free(); diff --git a/src/emucore/FrameBuffer.cxx b/src/emucore/FrameBuffer.cxx index 7e8b4fd4a..70ebcef18 100644 --- a/src/emucore/FrameBuffer.cxx +++ b/src/emucore/FrameBuffer.cxx @@ -388,6 +388,7 @@ void FrameBuffer::showMessage(const string& message, MessagePosition position, myMsg.w = font().getStringWidth(myMsg.text) + 10; myMsg.h = font().getFontHeight() + 8; + myMsg.surface->setSrcSize(myMsg.w, myMsg.h); myMsg.surface->setDstSize(myMsg.w, myMsg.h); myMsg.position = position; myMsg.enabled = true;