rnd-20100623-3-src
authorHolger Schemel <info@artsoft.org>
Wed, 23 Jun 2010 11:42:13 +0000 (13:42 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:59:35 +0000 (10:59 +0200)
* moved some editor graphics from "RocksDoor.pcx" to "RocksMore.pcx"
  (to prevent compatibility mapping of these newer graphics to older
  (custom) versions of "RocksDoor.pcx" which did not contain them yet)

ChangeLog
src/conf_gfx.c
src/conftime.h
src/game.c
src/main.c
src/main.h
src/tools.c

index 21e042239396f8bdd7c4b053943c58aad799c94c..c500d17a9d94368afeedb6b1188e721394c55479 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 2010-06-23
        * added graphics performance optimization to native Supaplex game engine
        * fixed bug with accidentally removing preceding buffer in SP engine
+       * moved some editor graphics from "RocksDoor.pcx" to "RocksMore.pcx"
+         (to prevent compatibility mapping of these newer graphics to older
+         (custom) versions of "RocksDoor.pcx" which did not contain them yet)
 
 2010-06-18
        * added separately configurable game panel background to graphics config
index 457cdf592db2361b8d06ed0e974a9498de496f32..b620dcbd3ad1d941480d14c49ea07a5a7655d4cc 100644 (file)
@@ -5152,21 +5152,21 @@ struct ConfigInfo image_config[] =
   { "global.busy.frames_per_line",             "7"                     },
   { "global.busy.delay",                       "2"                     },
 
-  { "editor.element_border",                   "RocksElements.pcx"     },
-  { "editor.element_border.x",                 "0"                     },
-  { "editor.element_border.y",                 "0"                     },
+  { "editor.element_border",                   "RocksMore.pcx"         },
+  { "editor.element_border.xpos",              "0"                     },
+  { "editor.element_border.ypos",              "2"                     },
 
-  { "editor.element_border_input",             "RocksDoor.pcx"         },
-  { "editor.element_border_input.x",           "740"                   },
-  { "editor.element_border_input.y",           "48"                    },
+  { "editor.element_border_input",             "RocksMore.pcx"         },
+  { "editor.element_border_input.xpos",                "10"                    },
+  { "editor.element_border_input.ypos",                "7"                     },
 
-  { "editor.cascade_list",                     "RocksDoor.pcx"         },
-  { "editor.cascade_list.x",                   "708"                   },
-  { "editor.cascade_list.y",                   "80"                    },
+  { "editor.cascade_list",                     "RocksMore.pcx"         },
+  { "editor.cascade_list.xpos",                        "10"                    },
+  { "editor.cascade_list.ypos",                        "8"                     },
   { "editor.cascade_list.frames",              "1"                     },
-  { "editor.cascade_list.active",              "RocksDoor.pcx"         },
-  { "editor.cascade_list.active.x",            "740"                   },
-  { "editor.cascade_list.active.y",            "80"                    },
+  { "editor.cascade_list.active",              "RocksMore.pcx"         },
+  { "editor.cascade_list.active.xpos",         "9"                     },
+  { "editor.cascade_list.active.ypos",         "8"                     },
   { "editor.cascade_list.active.frames",       "1"                     },
 
   { "background",                              UNDEFINED_FILENAME      },
index 467b820b123111d3bc33cfd0e3c98836b397cef9..49e7060bbd7aa1ebc9c44fdf1864a75cf508da64 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "2010-06-23 10:23"
+#define COMPILE_DATE_STRING "2010-06-23 13:30"
index 5b28f29b646f4f235badf46cfed3838b251b6649..cc30427478116ae54cde1804c2f9a89596df1d34 100644 (file)
@@ -13368,7 +13368,11 @@ void ScrollLevel(int dx, int dy)
 
 #else
 
+#if NEW_SCROLL
+  int softscroll_offset = (setup.soft_scrolling ? 2 * TILEX : 0);
+#else
   int softscroll_offset = (setup.soft_scrolling ? TILEX : 0);
+#endif
 
   BlitBitmap(drawto_field, drawto_field,
             FX + TILEX * (dx == -1) - softscroll_offset,
index d5dbe91c9d35f12f3f20d6b745c11bf60785d86c..cfe34b76301ea3bf4e0d0c631e12c9d3995f7eb7 100644 (file)
@@ -41,7 +41,11 @@ SDL_Thread          *server_thread;
 int                    key_joystick_mapping = 0;
 
 #if 1
+#if NEW_SCROLL
+boolean                        redraw[2 + MAX_LEV_FIELDX + 2][2 + MAX_LEV_FIELDY + 2];
+#else
 boolean                        redraw[MAX_LEV_FIELDX + 2][MAX_LEV_FIELDY + 2];
+#endif
 #else
 boolean                        redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
 #endif
index e5631b498394ca6a22baa79ed7dd221e07e658a8..34f8bcbf72ba2470331274e0ed08e48ad836cc80 100644 (file)
@@ -31,6 +31,8 @@
 #include "conf_mus.h"  /* include auto-generated data structure definitions */
 
 
+#define NEW_SCROLL                     0
+
 #define IMG_UNDEFINED                  (-1)
 #define IMG_EMPTY                      IMG_EMPTY_SPACE
 #define IMG_SP_EMPTY                   IMG_EMPTY_SPACE
@@ -2827,7 +2829,11 @@ extern SDL_Thread               *server_thread;
 extern int                     key_joystick_mapping;
 
 #if 1
+#if NEW_SCROLL
+extern boolean                 redraw[2 + MAX_LEV_FIELDX + 2][2 + MAX_LEV_FIELDY + 2];
+#else
 extern boolean                 redraw[MAX_LEV_FIELDX + 2][MAX_LEV_FIELDY + 2];
+#endif
 #else
 extern boolean                 redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
 #endif
index 326af5f9d8ea37dd725ecb623cb8f9ff9a44f886..eb6f0765d47d04c55c8647fed6ef2d9a076996dc 100644 (file)
@@ -108,6 +108,16 @@ void SetDrawtoField(int mode)
 {
   if (mode == DRAW_BUFFERED && setup.soft_scrolling)
   {
+#if NEW_SCROLL
+    FX = 2 * TILEX;
+    FY = 2 * TILEY;
+    BX1 = -2;
+    BY1 = -2;
+    BX2 = SCR_FIELDX + 1;
+    BY2 = SCR_FIELDY + 1;
+    redraw_x1 = 2;
+    redraw_y1 = 2;
+#else
     FX = TILEX;
     FY = TILEY;
     BX1 = -1;
@@ -116,6 +126,7 @@ void SetDrawtoField(int mode)
     BY2 = SCR_FIELDY;
     redraw_x1 = 1;
     redraw_y1 = 1;
+#endif
 
     drawto_field = fieldbuffer;
   }