projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a641433
)
fixed (swapped) editor zoom directions for left and right mouse button
author
Holger Schemel
<info@artsoft.org>
Wed, 11 Mar 2015 22:39:20 +0000
(23:39 +0100)
committer
Holger Schemel
<info@artsoft.org>
Wed, 11 Mar 2015 22:39:20 +0000
(23:39 +0100)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index d2e86eb9cd03982597207892e2ed726bc18ffac2..353170d8b15a519d1fc2273400f32bdc14e68c78 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-11331,9
+11331,9
@@
static void HandleControlButtons(struct GadgetInfo *gi)
case GADGET_ID_ZOOM:
// zoom level editor tile size in or out (or reset to default size)
case GADGET_ID_ZOOM:
// zoom level editor tile size in or out (or reset to default size)
- ed_tilesize = (button == 1 ? ed_tilesize
/
2 :
+ ed_tilesize = (button == 1 ? ed_tilesize
*
2 :
button == 2 ? DEFAULT_EDITOR_TILESIZE :
button == 2 ? DEFAULT_EDITOR_TILESIZE :
- button == 3 ? ed_tilesize
*
2 : ed_tilesize);
+ button == 3 ? ed_tilesize
/
2 : ed_tilesize);
// limit zoom level by upper and lower bound
ed_tilesize = MIN(MAX(MICRO_TILESIZE, ed_tilesize), TILESIZE);
// limit zoom level by upper and lower bound
ed_tilesize = MIN(MAX(MICRO_TILESIZE, ed_tilesize), TILESIZE);