X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmain.hpp;h=4a79a807c6b605fe354ced6bdcdc1d1638051891;hb=d0d4f2a10842e956e90af678e8270fec96536164;hp=93c03d9419d64dcd103f6403ff6fced8b0d704ee;hpb=c62711567861587107d124642db29e2674ee6533;p=supertux.git diff --git a/src/main.hpp b/src/main.hpp index 93c03d941..4a79a807c 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -23,13 +23,18 @@ void init_video(); void wait_for_event(float min_delay, float max_delay); -/// The width of the display (this is a logical value, not the physical value) -static const float SCREEN_WIDTH = 800; -/// The height of the display (this is a logical value, not the physical value) -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