Fixed blinking of ReloadableScrollingText.

This commit is contained in:
Pieter Hulshoff 2016-09-03 07:19:11 +02:00
parent 58801a1e2c
commit 9bf9c3d8c1
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ void ReloadableScrollingText::draw( )
SDL::renderCopy(t, baseViewInfo.Alpha, &charRect, &rect, baseViewInfo);
rect.x += rect.w;
}
else
else if ((rect.x + static_cast<int>( glyph.advance * scale * scaleX_ )) >= (static_cast<int>( xOrigin ) + imageMaxWidth))
{
rect.x = static_cast<int>( xOrigin ) + static_cast<int>( imageMaxWidth ) + 10; // Stop handling the rest of the string
}

View File

@ -20,7 +20,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "7";
std::string retrofe_version_build = "11";
std::string retrofe_version_build = "12";
std::string Version::getString()