mirror of https://github.com/stella-emu/stella.git
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:
parent
b068b3299f
commit
3a60412706
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue