Correctly scale ice border / frame to screen size, fixes bug #620
authorTobias Markus <tobbi@mozilla-uk.org>
Wed, 13 Aug 2014 13:18:56 +0000 (15:18 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Wed, 13 Aug 2014 13:18:56 +0000 (15:18 +0200)
src/supertux/title_screen.cpp

index 368ac4a..fe0e299 100644 (file)
@@ -119,8 +119,8 @@ 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, Vector(0,0), Vector(SCREEN_WIDTH, SCREEN_HEIGHT),
+                            Vector(0,0), LAYER_FOREGROUND1);
 
   context.draw_text(Resources::small_font,
                     copyright_text,