X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmain.hpp;h=4a79a807c6b605fe354ced6bdcdc1d1638051891;hb=ba5f95533903ed6190b0fddede258c86540afffa;hp=8a65366dcee1028f4a882991e2ee8ccdccfbcd8a;hpb=70fdbd45026801f0f0f312278c69b383eaca9d3a;p=supertux.git diff --git a/src/main.hpp b/src/main.hpp index 8a65366dc..4a79a807c 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -1,7 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2005 Matthias Braun +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,7 +12,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -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