projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb43be9
)
fixed bug with custom playfield scrollbar size in level editor being ignored
author
Holger Schemel
<info@artsoft.org>
Wed, 19 Oct 2016 19:40:31 +0000
(21:40 +0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 19 Oct 2016 19:40:31 +0000
(21:40 +0200)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index 479fec7af807ebc7dbd3bbb34c3f5a078c6a0197..ffad0a5cb9a32bbfe1b75bca50c21a8fc9b40360 100644
(file)
--- 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)