From 3a60412706efb7e19f915bc040fa99f9b7fc8fbb Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 7 May 2014 20:02:47 +0000 Subject: [PATCH] Fixed framebuffer overlay display; the messages weren't being scaled correctly. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2886 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/FBSurfaceSDL2.cxx | 2 +- src/emucore/FrameBuffer.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;