projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved console rendering at 16:10 aspect ratio
[supertux.git]
/
src
/
mainloop.cpp
diff --git
a/src/mainloop.cpp
b/src/mainloop.cpp
index
0a2daeb
..
e5db024
100644
(file)
--- a/
src/mainloop.cpp
+++ b/
src/mainloop.cpp
@@
-109,6
+109,12
@@
MainLoop::set_speed(float speed)
this->speed = speed;
}
this->speed = speed;
}
+float
+MainLoop::get_speed() const
+{
+ return speed;
+}
+
void
MainLoop::draw_fps(DrawingContext& context, float fps_fps)
{
void
MainLoop::draw_fps(DrawingContext& context, float fps_fps)
{
@@
-222,10
+228,8
@@
MainLoop::handle_screen_switch()
}
void
}
void
-MainLoop::run()
+MainLoop::run(
DrawingContext &context
)
{
{
- DrawingContext context;
-
Uint32 last_ticks = 0;
Uint32 elapsed_ticks = 0;
Uint32 last_ticks = 0;
Uint32 elapsed_ticks = 0;