Code

screen_play: repaint hscrolling only if selected item is wide
authorMax Kellermann <max@duempel.org>
Mon, 28 Sep 2009 16:21:54 +0000 (18:21 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 28 Sep 2009 16:21:54 +0000 (18:21 +0200)
commit1a4b44ee075dfd385a523b9977582b82a0fa82da
treef7c621a830a1eb8baceaab9b8264c3be338dfc54
parent8173e34351795c4b189fad8824fa82b688bd0f31
screen_play: repaint hscrolling only if selected item is wide

When the "scroll" option is active, ncmpc repainted the whole screen
with each tick, even if the selected item is not wider than the
screen.  This wasted a lot of CPU cycles.
src/screen_play.c