From: Holger Schemel Date: Wed, 19 Oct 2016 19:40:31 +0000 (+0200) Subject: fixed bug with custom playfield scrollbar size in level editor being ignored X-Git-Tag: 4.0.0.0~36 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=357f4970ed173c97267960ce5c96f585dd1b5b32 fixed bug with custom playfield scrollbar size in level editor being ignored --- diff --git a/src/editor.c b/src/editor.c index 479fec7a..ffad0a5c 100644 --- a/src/editor.c +++ b/src/editor.c @@ -248,8 +248,8 @@ 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)