added separate buttons for element properties of drawing elements
[rocksndiamonds.git] / src / libgame / system.h
index 0bd948bd640ff684c88f25ee3ddff7637a303b0a..48e06ae1d3394aabac4916e46af371210df2b848 100644 (file)
 #define MB_WHEEL_DOWN                  5
 #define MB_WHEEL_LEFT                  6
 #define MB_WHEEL_RIGHT                 7
-#define IS_WHEEL_BUTTON_VERTICAL(b)    ((b) >= MB_WHEEL_UP &&          \
-                                        (b) <= MB_WHEEL_DOWN)
-#define IS_WHEEL_BUTTON_HORIZONTAL(b)  ((b) >= MB_WHEEL_LEFT &&        \
-                                        (b) <= MB_WHEEL_RIGHT)
-#define IS_WHEEL_BUTTON(b)             ((b) >= MB_WHEEL_UP &&          \
-                                        (b) <= MB_WHEEL_DOWN)
+#define IS_WHEEL_BUTTON_VERTICAL(b)    ((b) == MB_WHEEL_UP ||          \
+                                        (b) == MB_WHEEL_DOWN)
+#define IS_WHEEL_BUTTON_HORIZONTAL(b)  ((b) == MB_WHEEL_LEFT ||        \
+                                        (b) == MB_WHEEL_RIGHT)
+#define IS_WHEEL_BUTTON(b)             (IS_WHEEL_BUTTON_VERTICAL(b) || \
+                                        IS_WHEEL_BUTTON_HORIZONTAL(b))
 #define DEFAULT_WHEEL_STEPS            3
 
 #define BUTTON_STEPSIZE(b)             ((b) == MB_LEFTBUTTON   ?  1 :  \
@@ -1294,6 +1294,12 @@ struct XY
   int x, y;
 };
 
+struct XYTileSize
+{
+  int x, y;
+  int tile_size;
+};
+
 struct Rect
 {
   int x, y;
@@ -1376,6 +1382,7 @@ extern DrawBuffer        *drawto;
 
 extern int                     button_status;
 extern boolean                 motion_status;
+extern int                     wheel_steps;
 #if defined(TARGET_SDL2)
 extern boolean                 keyrepeat_status;
 #endif
@@ -1461,7 +1468,6 @@ Bitmap *LoadImage(char *);
 Bitmap *LoadCustomImage(char *);
 void ReloadCustomImage(Bitmap *, char *);
 
-Bitmap *ZoomBitmap(Bitmap *, int, int);
 void ReCreateGameTileSizeBitmap(Bitmap **);
 void CreateBitmapWithSmallBitmaps(Bitmap **, int, int);
 void CreateBitmapTextures(Bitmap **);