From: Ingo Ruhnke Date: Sat, 16 Aug 2014 19:55:21 +0000 (+0200) Subject: Reenabled TitleScreen border, looks a bit terrible in 1280x720, as it was designed... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=db5b2cd9c36af4a9eeb98c7e50ba5f156c933627;p=supertux.git Reenabled TitleScreen border, looks a bit terrible in 1280x720, as it was designed for 800x600 --- diff --git a/src/supertux/title_screen.cpp b/src/supertux/title_screen.cpp index 3f7f84534..052c9d9f1 100644 --- a/src/supertux/title_screen.cpp +++ b/src/supertux/title_screen.cpp @@ -119,8 +119,10 @@ TitleScreen::draw(DrawingContext& context) Sector* sector = titlesession->get_current_sector(); sector->draw(context); - // FIXME: Add something to scale the frame to the resolution of the screen - //context.draw_surface(frame, Vector(0,0),LAYER_FOREGROUND1); + context.draw_surface_part(frame, + Rectf(0, 0, frame->get_width(), frame->get_height()), + Rectf(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), + LAYER_FOREGROUND1); context.draw_text(Resources::small_font, copyright_text,