File neverball-1.3.7-config.diff of Package neverball

--- neverball-1.3.7/ball/st_conf.c	2004-07-12 22:26:55.000000000 +0200
+++ n/ball/st_conf.c	2004-08-25 21:42:01.898117960 +0200
@@ -45,6 +45,7 @@
 #define CONF_AUDHI 18
 #define CONF_AUDLO 19
 #define CONF_BACK  20
+#define CONF_12x8  21
 
 static int audlo_id;
 static int audhi_id;
@@ -88,6 +89,12 @@
         goto_state(&st_conf);
         break;
 
+    case CONF_12x8:
+        goto_state(&st_null);
+        r = config_mode(f, 1279, 800);
+        goto_state(&st_conf);
+        break;
+
     case CONF_10x7:
         goto_state(&st_null);
         r = config_mode(f, 1024, 768);
@@ -248,6 +255,8 @@
                 gui_state(jd, "1600 x 1200", GUI_SML, CONF_16x12, (w == 1600));
             if (SDL_VideoModeOK(1280, 1024, 16, SDL_HWSURFACE))
                 gui_state(jd, "1280 x 1024", GUI_SML, CONF_12x10, (w == 1280));
+            if (SDL_VideoModeOK(1279, 800, 16, SDL_HWSURFACE))
+                gui_state(jd, "1280 x 800", GUI_SML, CONF_12x8, (w == 1279));
             if (SDL_VideoModeOK(1024, 768, 16, SDL_HWSURFACE))
                 gui_state(jd, "1024 x 768",  GUI_SML, CONF_10x7,  (w == 1024));
             if (SDL_VideoModeOK(800, 600, 16, SDL_HWSURFACE))

DEFAULT_CAMERA of 2 makes the defaul camera the one which is at F3
(see the help window in the game) - as the fast moving camera confuses many users
(admitted by the developer, it's better to use the old default camera):

  Disabled the hunks below. The 3 hunks above are the only hunks which are active
  in this patch.

  They add the resolution of 1280x800, which always worked in the past.

  This patch was disabled in the spec file, because the
  author of the program did not like the changes below.

  He did not object the added resolution, so with that,
  the patch can be re-enabled in the spec file and the
  resultion 1280x800 can be selected in the options menu.

--- neverball-1.3.7/share/config.h	2004-07-21 23:35:21.000000000 +0200
+++ n/share/config.h	2004-08-25 22:18:15.697650200 +0200
#@@ -20,7 +20,7 @@
 
 /*---------------------------------------------------------------------------*/
 
-#define CONFIG_DATA "./data"
+#define CONFIG_DATA "/usr/share/games/neverball"
 #define CONFIG_USER ".neverball"
 
 /*
#@@ -124,7 +124,7 @@
 #define DEFAULT_WIDTH                800
 #define DEFAULT_HEIGHT               600
 #define DEFAULT_STEREO               0
-#define DEFAULT_CAMERA               0
+#define DEFAULT_CAMERA               2
 #define DEFAULT_TEXTURES             1
 #define DEFAULT_GEOMETRY             1
 #define DEFAULT_REFLECTION           1
#@@ -155,12 +155,12 @@
 #define DEFAULT_KEY_CAMERA_3         SDLK_F3
 #define DEFAULT_KEY_CAMERA_R         SDLK_RIGHT
 #define DEFAULT_KEY_CAMERA_L         SDLK_LEFT
-#define DEFAULT_VIEW_FOV             50
-#define DEFAULT_VIEW_DP              75
+#define DEFAULT_VIEW_FOV             40
+#define DEFAULT_VIEW_DP              400
 #define DEFAULT_VIEW_DC              25
-#define DEFAULT_VIEW_DZ              200
+#define DEFAULT_VIEW_DZ              600
 #define DEFAULT_ROTATE_SLOW          100
-#define DEFAULT_ROTATE_FAST          200
+#define DEFAULT_ROTATE_FAST          160
 #define DEFAULT_PLAYER               "Player"
 #define DEFAULT_BALL                 "png/ball.png"
 #define DEFAULT_COIN                 "png/coin.png"

the FOV/DP/DZ settings change the Field of View back were it was up to 1.2.6
otherwise it's too narrow and low.

The FAST change makes the fast rotating camera a bit slower, more bearable
openSUSE Build Service is sponsored by