summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-17 00:52:42 +0200
committerwm4 <wm4@nowhere>2014-10-17 00:53:55 +0200
commit0a7a70f1989ac79ac1d3352af3d37b85b7734977 (patch)
tree7c5c1172f8c04a5282d860740ebffcefad90a3d5 /input
parentb5ca94af5cd38c90917d6524976dda2d16135660 (diff)
downloadmpv-0a7a70f1989ac79ac1d3352af3d37b85b7734977.tar.bz2
mpv-0a7a70f1989ac79ac1d3352af3d37b85b7734977.tar.xz
input: don't add weird padding when formatting keycode
No idea what this was for. It has no purpose and looks weird.
Diffstat (limited to 'input')
-rw-r--r--input/keycodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/keycodes.c b/input/keycodes.c
index a92b6ed0c8..5108a8beae 100644
--- a/input/keycodes.c
+++ b/input/keycodes.c
@@ -274,7 +274,7 @@ static void mp_input_append_key_name(bstr *buf, int key)
}
// Print the hex key code
- bstr_xappend_asprintf(NULL, buf, "%#-8x", key);
+ bstr_xappend_asprintf(NULL, buf, "0x%x", key);
}
char *mp_input_get_key_name(int key)