fixed bug with custom playfield scrollbar size in level editor being ignored
authorHolger Schemel <info@artsoft.org>
Wed, 19 Oct 2016 19:40:31 +0000 (21:40 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 19 Oct 2016 19:40:31 +0000 (21:40 +0200)
src/editor.c

index 479fec7af807ebc7dbd3bbb34c3f5a078c6a0197..ffad0a5cb9a32bbfe1b75bca50c21a8fc9b40360 100644 (file)
                                         ED_AREA_YOFFSET_2(3))
 
 /* values for scrolling gadgets for drawing area */
-#define ED_SCROLLBUTTON_XSIZE          16
-#define ED_SCROLLBUTTON_YSIZE          16
+#define ED_SCROLLBUTTON_XSIZE          (graphic_info[IMG_EDITOR_PLAYFIELD_SCROLLBAR].width)
+#define ED_SCROLLBUTTON_YSIZE          (graphic_info[IMG_EDITOR_PLAYFIELD_SCROLLBAR].height)
 
 #define ED_SCROLL_UP_XPOS              (SXSIZE - ED_SCROLLBUTTON_XSIZE)
 #define ED_SCROLL_UP_YPOS              (0)