Draw the credits scroller using system font drawer

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

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;
}

2
native

@ -1 +1 @@
Subproject commit fee82ce2883af4627dd23060cf76226594925482
Subproject commit 8cf9d3aef5d3cf5803d3f37ff0d8102f916f8da7