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
This commit is contained in:
stephena 2014-05-07 20:02:47 +00:00
parent b068b3299f
commit 3a60412706
2 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,7 @@ void FBSurfaceSDL2::setInterpolationAndBlending(
{ {
myInterpolate = smoothScale; myInterpolate = smoothScale;
myBlendEnabled = useBlend; myBlendEnabled = useBlend;
myBlendAlpha = blendAlpha * 2.55; myBlendAlpha = uInt8(blendAlpha * 2.55);
// Re-create the texture with the new settings // Re-create the texture with the new settings
free(); free();

View File

@ -388,6 +388,7 @@ void FrameBuffer::showMessage(const string& message, MessagePosition position,
myMsg.w = font().getStringWidth(myMsg.text) + 10; myMsg.w = font().getStringWidth(myMsg.text) + 10;
myMsg.h = font().getFontHeight() + 8; myMsg.h = font().getFontHeight() + 8;
myMsg.surface->setSrcSize(myMsg.w, myMsg.h);
myMsg.surface->setDstSize(myMsg.w, myMsg.h); myMsg.surface->setDstSize(myMsg.w, myMsg.h);
myMsg.position = position; myMsg.position = position;
myMsg.enabled = true; myMsg.enabled = true;