mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-24 15:48:52 +01:00
Improved performance of ReloadableScrollingText.
This commit is contained in:
parent
f5c7808c80
commit
f1d902703e
@ -266,7 +266,7 @@ void ReloadableScrollingText::draw( )
|
||||
{
|
||||
Component::draw( );
|
||||
|
||||
if (!text_.empty( ) && waitEndTime_ <= 0.0f)
|
||||
if (!text_.empty( ) && waitEndTime_ <= 0.0f && baseViewInfo.Alpha > 0)
|
||||
{
|
||||
|
||||
Font *font;
|
||||
@ -361,8 +361,12 @@ void ReloadableScrollingText::draw( )
|
||||
if (rect.w > 0)
|
||||
{
|
||||
SDL::renderCopy(t, baseViewInfo.Alpha, &charRect, &rect, baseViewInfo);
|
||||
rect.x += rect.w;
|
||||
}
|
||||
else
|
||||
{
|
||||
rect.x = static_cast<int>( xOrigin ) + imageMaxWidth + 1; // Stop handling the rest of the string
|
||||
}
|
||||
rect.x += rect.w;
|
||||
}
|
||||
position += glyph.advance * scale * scaleX_;
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
std::string retrofe_version_major = "0";
|
||||
std::string retrofe_version_minor = "7";
|
||||
std::string retrofe_version_build = "8";
|
||||
std::string retrofe_version_build = "9";
|
||||
|
||||
|
||||
std::string Version::getString()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user