projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved responsiveness of playfield scrolling in editor
[rocksndiamonds.git]
/
src
/
editor.c
diff --git
a/src/editor.c
b/src/editor.c
index 89e82bceb61db1673d07add0a97b864cbccf29b8..632810d3f2b3fd854475aeb5e39cb12177983d3e 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-11475,12
+11475,18
@@
static void HandleControlButtons(struct GadgetInfo *gi)
case GADGET_ID_SCROLL_HORIZONTAL:
level_xpos = gi->event.item_position - 1;
case GADGET_ID_SCROLL_HORIZONTAL:
level_xpos = gi->event.item_position - 1;
+
DrawEditorLevel(ed_fieldx, ed_fieldy, level_xpos, level_ypos);
DrawEditorLevel(ed_fieldx, ed_fieldy, level_xpos, level_ypos);
+ BackToFront();
+
break;
case GADGET_ID_SCROLL_VERTICAL:
level_ypos = gi->event.item_position - 1;
break;
case GADGET_ID_SCROLL_VERTICAL:
level_ypos = gi->event.item_position - 1;
+
DrawEditorLevel(ed_fieldx, ed_fieldy, level_xpos, level_ypos);
DrawEditorLevel(ed_fieldx, ed_fieldy, level_xpos, level_ypos);
+ BackToFront();
+
break;
case GADGET_ID_SCROLL_LIST_UP:
break;
case GADGET_ID_SCROLL_LIST_UP: