- added geometry option which allows SuperTux to run at any resolution
[supertux.git] / lib / app / globals.cpp
index 3b042f1..35ae5d0 100644 (file)
@@ -33,7 +33,10 @@ std::string datadir;
 std::string package_symbol_name;
 std::string package_name;
 std::string package_version;
-  
+
+int screen_width  = SCREEN_WIDTH;
+int screen_height = SCREEN_HEIGHT;
+
 JoystickKeymap::JoystickKeymap()
 {
   a_button     = 0;
@@ -70,7 +73,8 @@ std::string st_dir, st_save_dir;
 SDL_Joystick * js;
 
 /* Returns 1 for every button event, 2 for a quit event and 0 for no event. */
-int wait_for_event(SDL_Event& event,unsigned int min_delay, unsigned int max_delay, bool empty_events)
+int wait_for_event(SDL_Event& event, unsigned int min_delay,
+    unsigned int max_delay, bool empty_events)
 {
   int i;
   Timer maxdelay;