Fix marquee slowing down with increased resolution.

This commit is contained in:
Skyth 2024-12-09 20:20:09 +03:00
parent 075ee43808
commit 70268e41b5
2 changed files with 2 additions and 2 deletions

View file

@ -231,7 +231,7 @@ static void DrawAchievement(int rowIndex, float yOffset, Achievement& achievemen
desc,
g_rowSelectionTime,
0.9,
250.0,
Scale(250.0),
shadowOffset,
0.4f,
colTextShadow

View file

@ -539,7 +539,7 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
drawList->AddRectFilledMultiColor({ min.x, min.y + prevItemOffset }, { max.x, max.y + prevItemOffset }, c0, c0, c1, c1);
DrawTextWithMarquee(g_seuratFont, size, textPos, min, max, textColour, configName.c_str(), g_rowSelectionTime, 0.9, 250.0);
DrawTextWithMarquee(g_seuratFont, size, textPos, min, max, textColour, configName.c_str(), g_rowSelectionTime, 0.9, Scale(250.0));
// Show reset button if this option is accessible or not a language option.
g_canReset = g_selectedItem->GetName().find("Language") == std::string::npos && isAccessible;