mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] main: add + sign to mouse sensitivit alerts
This commit is contained in:
parent
759b4ef811
commit
83c5df2c47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user