]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: small optimizations
authorbraph <braph93@gmx.de>
Thu, 3 Oct 2019 18:18:23 +0000 (20:18 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 1 Jul 2020 14:10:35 +0000 (16:10 +0200)
commit0657b2a55961def14a3b288f8aad5f445ac285cd
treebdc59144735bb2ce3ebc552452526a0580468ae8
parent89e746368c5a9019b86647bb12e442f5c05b0279
alsamixer: small optimizations

textbox.c, mixer_display.c:
  - Replaced manual line drawing code `for (...) mvwaddch(...)` by the
    functions `mvwhline/mvwvline` provided by standard curses

card_select.c, proc_files.c:
  - Moved duplicate code in the create() functions to menu_widget_create()
    in menu_widget.c

card_select.c:
  - Removed redundant calls to sprintf()

device_name.c:
  - Combined multiple calls to form_opts_off()
  - Recognize ASCII DEL (127) as backspace

widget.c:
  - Uncommented code for setting a dummy key handler (all existing
    widgets do provide a key handling function)

Signed-off-by: Benjamin Abendroth <braph93@gmx.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsamixer/card_select.c
alsamixer/device_name.c
alsamixer/menu_widget.c
alsamixer/menu_widget.h
alsamixer/mixer_display.c
alsamixer/proc_files.c
alsamixer/textbox.c
alsamixer/widget.c