mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-09-16 20:22:22 +02:00
Improved performance of ReloadableScrollingText.
This commit is contained in:
@@ -266,7 +266,7 @@ void ReloadableScrollingText::draw( )
|
|||||||
{
|
{
|
||||||
Component::draw( );
|
Component::draw( );
|
||||||
|
|
||||||
if (!text_.empty( ) && waitEndTime_ <= 0.0f)
|
if (!text_.empty( ) && waitEndTime_ <= 0.0f && baseViewInfo.Alpha > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
Font *font;
|
Font *font;
|
||||||
@@ -361,8 +361,12 @@ void ReloadableScrollingText::draw( )
|
|||||||
if (rect.w > 0)
|
if (rect.w > 0)
|
||||||
{
|
{
|
||||||
SDL::renderCopy(t, baseViewInfo.Alpha, &charRect, &rect, baseViewInfo);
|
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_;
|
position += glyph.advance * scale * scaleX_;
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
std::string retrofe_version_major = "0";
|
std::string retrofe_version_major = "0";
|
||||||
std::string retrofe_version_minor = "7";
|
std::string retrofe_version_minor = "7";
|
||||||
std::string retrofe_version_build = "8";
|
std::string retrofe_version_build = "9";
|
||||||
|
|
||||||
|
|
||||||
std::string Version::getString()
|
std::string Version::getString()
|
||||||
|
|||||||
Reference in New Issue
Block a user