projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed game crashing when leaving the worldmap
[supertux.git]
/
src
/
main.hpp
diff --git
a/src/main.hpp
b/src/main.hpp
index
5f2ebbf
..
e64b01f
100644
(file)
--- a/
src/main.hpp
+++ b/
src/main.hpp
@@
-23,8
+23,10
@@
void init_video();
void wait_for_event(float min_delay, float max_delay);
void init_video();
void wait_for_event(float min_delay, float max_delay);
-static const float SCREEN_WIDTH = 800;
-static const float SCREEN_HEIGHT = 600;
+/// The width of the display (this is a logical value, not the physical value)
+extern int SCREEN_WIDTH;
+/// The height of the display (this is a logical value, not the physical value)
+extern int SCREEN_HEIGHT;
// global variables
class JoystickKeyboardController;
// global variables
class JoystickKeyboardController;