mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Simplfication
This commit is contained in:
1 parent
65fb1a5aa7
commit
7b50443c66
1 file changed
+1
-3
+1
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user