projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a97d512
)
fixed potential bug with default step size when increasing/decreasing level
author
Holger Schemel
<info@artsoft.org>
Mon, 11 Jun 2018 17:33:59 +0000
(19:33 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 17 Jun 2018 22:02:49 +0000
(
00:02
+0200)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 80c10ca96f67415c723070b7d8bc723ee42e1a37..067f630aa2be16bc287964e6039def923020b006 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-8251,7
+8251,9
@@
static void HandleScreenGadgets(struct GadgetInfo *gi)
{
int id = gi->custom_id;
int button = gi->event.button;
- int step = (button == 1 ? 1 : button == 2 ? 5 : 10);
+ int step = (button == MB_LEFTBUTTON ? 1 :
+ button == MB_MIDDLEBUTTON ? 5 :
+ button == MB_RIGHTBUTTON ? 10 : 1);
switch (id)
{