Simplfication

This commit is contained in:
Henrik Rydgård committed 2024-06-01 13:15:14 +02:00
1 parent 65fb1a5aa7
commit 7b50443c66
1 file changed
+1 -3
+1 -3
View File
@@ -1041,15 +1041,13 @@ void CreditsScreen::DrawForeground(UIContext &dc) {
float t = (float)(time_now_d() - startTime_) * 60.0;
float y = bounds.y2() - fmodf(t, (float)totalHeight);
std::string line;
for (int i = 0; i < numItems; i++) {
float alpha = linearInOut(y+32, 64, bounds.y2() - 192, 64);
uint32_t textColor = colorAlpha(dc.theme->infoStyle.fgColor, alpha);
if (alpha > 0.0f) {
dc.SetFontScale(ease(alpha), ease(alpha));
line = credits[i];
dc.DrawText(line.c_str(), bounds.centerX(), y, textColor, ALIGN_HCENTER);
dc.DrawText(credits[i], bounds.centerX(), y, textColor, ALIGN_HCENTER);
dc.SetFontScale(1.0f, 1.0f);
}
y += itemHeight;