X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmain.hpp;h=4a79a807c6b605fe354ced6bdcdc1d1638051891;hb=38105c22495d9439b30221732dd5d7b89f328a0c;hp=5f2ebbf6ee6628abca1cbf07f023c2edee8341d3;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/main.hpp b/src/main.hpp index 5f2ebbf6e..4a79a807c 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -23,11 +23,18 @@ 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, since aspect_ration and projection_area might + shrink or scale things) */ +extern int SCREEN_WIDTH; + +/** The width of the display (this is a logical value, not the + physical value, since aspect_ration and projection_area might + shrink or scale things) */ +extern int SCREEN_HEIGHT; // global variables -class JoystickKeyboardController; +class JoystickKeyboardController; extern JoystickKeyboardController* main_controller; #endif