X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftitle.cpp;h=59df3d09170f7f4fad748461faa04e5bea56f882;hb=908a780ca974cc9d8bf6c2815d9eec6e8ec25fbb;hp=a60181c50b2d21ed2a57ad15196d3103e3bb3b4d;hpb=1f43b5e2a97a5e4040202dbf441fa29081798a4c;p=supertux.git diff --git a/src/title.cpp b/src/title.cpp index a60181c50..59df3d091 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -181,7 +181,7 @@ void check_levels_contrib_menu() fadeout(256); DrawingContext context; context.draw_text(white_text, "Loading...", - Vector(screen->w/2, screen->h/2), CENTER_ALLIGN, LAYER_FOREGROUND1); + Vector(SCREEN_WIDTH/2, SCREEN_HEIGHT/2), CENTER_ALLIGN, LAYER_FOREGROUND1); context.do_drawing(); // TODO: slots should be available for contrib maps @@ -341,18 +341,18 @@ void title(void) if (Menu::current() == main_menu) - context.draw_surface(logo, Vector(screen->w/2 - logo->w/2, 30), + context.draw_surface(logo, Vector(SCREEN_WIDTH/2 - logo->w/2, 30), LAYER_FOREGROUND1+1); context.draw_text(white_small_text, " SuperTux " PACKAGE_VERSION "\n", - Vector(0, screen->h - 50), LEFT_ALLIGN, LAYER_FOREGROUND1); + Vector(0, SCREEN_HEIGHT - 50), LEFT_ALLIGN, LAYER_FOREGROUND1); context.draw_text(white_small_text, _( "Copyright (c) 2003 SuperTux Devel Team\n" "This game comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to\n" "redistribute it under certain conditions; see the file COPYING for details.\n" ), - Vector(0, screen->h - 50 + white_small_text->get_height() + 5), + Vector(0, SCREEN_HEIGHT - 50 + white_small_text->get_height() + 5), LEFT_ALLIGN, LAYER_FOREGROUND1); /* Don't draw menu, if quit is true */