fix configure scritp
[supertux.git] / lib / app / globals.cpp
index 3b042f1..5327778 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;
@@ -51,26 +54,22 @@ JoystickKeymap joystick_keymap;
 SDL_Surface * screen;
 MouseCursor * mouse_cursor;
 
-bool use_gl;
-bool use_joystick;
-bool use_fullscreen;
-bool debug_mode;
-bool show_fps;
-bool debug_grid = false;
-
+#if 0
 int joystick_num = 0;
 char* level_startup_file = 0;
 bool launch_leveleditor_mode = false;
 bool launch_worldmap_mode = false;
 bool flip_levels_mode = false;
+#endif
 
 /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
-std::string st_dir, st_save_dir;
+std::string user_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;