rnd-20100623-3-src
[rocksndiamonds.git] / src / tools.c
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;
   }