mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-29 18:16:29 +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)
|
if (state.mouseSens < 9)
|
||||||
++state.mouseSens;
|
++state.mouseSens;
|
||||||
|
|
||||||
alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens);
|
alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens);
|
||||||
app_alert(
|
app_alert(
|
||||||
LG_ALERT_INFO,
|
LG_ALERT_INFO,
|
||||||
msg
|
msg
|
||||||
@ -936,7 +936,7 @@ static void mouse_sens_dec(SDL_Scancode key, void * opaque)
|
|||||||
if (state.mouseSens > -9)
|
if (state.mouseSens > -9)
|
||||||
--state.mouseSens;
|
--state.mouseSens;
|
||||||
|
|
||||||
alloc_sprintf(&msg, "Sensitivity: %d", state.mouseSens);
|
alloc_sprintf(&msg, "Sensitivity: %s%d", state.mouseSens > 0 ? "+" : "", state.mouseSens);
|
||||||
app_alert(
|
app_alert(
|
||||||
LG_ALERT_INFO,
|
LG_ALERT_INFO,
|
||||||
msg
|
msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user