projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6341114
)
Reenabled TitleScreen border, looks a bit terrible in 1280x720, as it was designed...
author
Ingo Ruhnke
<grumbel@gmail.com>
Sat, 16 Aug 2014 19:55:21 +0000
(21:55 +0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Sat, 16 Aug 2014 19:55:21 +0000
(21:55 +0200)
src/supertux/title_screen.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/title_screen.cpp
b/src/supertux/title_screen.cpp
index
3f7f845
..
052c9d9
100644
(file)
--- 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,