X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=ffad0a5cb9a32bbfe1b75bca50c21a8fc9b40360;hp=479fec7af807ebc7dbd3bbb34c3f5a078c6a0197;hb=357f4970ed173c97267960ce5c96f585dd1b5b32;hpb=bb43be9a97c4c6b8fd4ac94c7438f1b0ca1d33eb 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)