Skip to content
Permalink
Browse files

[client] main: add + sign to mouse sensitivit alerts

  • Loading branch information...
gnif committed May 23, 2019
1 parent 759b4ef commit 83c5df2c479e08a70ce9940c7989b09c5a382d9e
Showing with 3 additions and 3 deletions.
  1. +1 −1 VERSION
  2. +2 −2 client/src/main.c
@@ -1 +1 @@
a12-231-g437ebf6265+1
a12-232-g759b4ef811+1
@@ -921,7 +921,7 @@ static void mouse_sens_inc(SDL_Scancode key, void * opaque)
if (state.mouseSens < 9)
++state.mouseSens;

alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens);
alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens);
app_alert(
LG_ALERT_INFO,
msg
@@ -936,7 +936,7 @@ static void mouse_sens_dec(SDL_Scancode key, void * opaque)
if (state.mouseSens > -9)
--state.mouseSens;

alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens);
alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens);
app_alert(
LG_ALERT_INFO,
msg

0 comments on commit 83c5df2

Please sign in to comment.
You can’t perform that action at this time.