From db5b2cd9c36af4a9eeb98c7e50ba5f156c933627 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 16 Aug 2014 21:55:21 +0200 Subject: [PATCH] Reenabled TitleScreen border, looks a bit terrible in 1280x720, as it was designed for 800x600 --- src/supertux/title_screen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.11.0