Reenabled TitleScreen border, looks a bit terrible in 1280x720, as it was designed...
authorIngo Ruhnke <grumbel@gmail.com>
Sat, 16 Aug 2014 19:55:21 +0000 (21:55 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Sat, 16 Aug 2014 19:55:21 +0000 (21:55 +0200)
src/supertux/title_screen.cpp

index 3f7f845..052c9d9 100644 (file)
@@ -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,