X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftitle.c;h=f6afbcff44239964d7ef0c33bad7a2f9f6971d28;hb=b52ac0006b090d526755498142a93d94d60edf1a;hp=57b25035690555c0966a70082312ace1f27f244a;hpb=3a2e445f4a00e2989c8e7915f315c1e2dd16f24d;p=supertux.git diff --git a/src/title.c b/src/title.c index 57b250356..f6afbcff4 100644 --- a/src/title.c +++ b/src/title.c @@ -135,6 +135,17 @@ int title(void) sprintf(str, "by %s", hs_name); text_drawf(&gold_text, str, 0, -20, A_HMIDDLE, A_BOTTOM, 1, NO_UPDATE); + /* Animate title screen: */ + + pict = (frame / 5) % 3; + + if (pict == 0) + texture_draw_part(&title, 560, 270, 560, 270, 80, 75, NO_UPDATE); + else if (pict == 1) + texture_draw(&anim1, 560, 270, NO_UPDATE); + else if (pict == 2) + texture_draw(&anim2, 560, 270, NO_UPDATE); + /* Don't draw menu, if quit is true */ if(show_menu && !quit) menu_process_current(); @@ -220,16 +231,6 @@ int title(void) { process_options_menu(); } - /* Animate title screen: */ - - pict = (frame / 5) % 3; - - if (pict == 0) - texture_draw_part(&title, 560, 270, 560, 270, 80, 75, NO_UPDATE); - else if (pict == 1) - texture_draw(&anim1, 560, 270, NO_UPDATE); - else if (pict == 2) - texture_draw(&anim2, 560, 270, NO_UPDATE); flipscreen();