Draw the credits scroller using system font drawer

This commit is contained in:
Henrik Rydgard committed 2013-09-04 12:38:52 +02:00
1 parent ad620e463a
commit 1e2ecfd2ca
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -543,9 +543,9 @@ void CreditsScreen::render() {
for (int i = 0; i < numItems; i++) {
float alpha = linearInOut(y+32, 64, dp_yres - 192, 64);
if (alpha > 0.0f) {
dc.Draw()->SetFontScale(ease(alpha), ease(alpha));
dc.Draw()->DrawText(UBUNTU24, credits[i], dp_xres/2, y, whiteAlpha(alpha), ALIGN_HCENTER);
dc.Draw()->SetFontScale(1.0f, 1.0f);
dc.SetFontScale(ease(alpha), ease(alpha));
dc.DrawText(credits[i], dp_xres/2, y, whiteAlpha(alpha), ALIGN_HCENTER);
dc.SetFontScale(1.0f, 1.0f);
}
y += itemHeight;
}
+1 -1
Submodule native updated: fee82ce288...8cf9d3aef5.