author | Max Kellermann <max@duempel.org> | |
Mon, 28 Sep 2009 16:21:54 +0000 (18:21 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 28 Sep 2009 16:21:54 +0000 (18:21 +0200) | ||
commit | 1a4b44ee075dfd385a523b9977582b82a0fa82da | |
tree | f7c621a830a1eb8baceaab9b8264c3be338dfc54 | tree | snapshot |
parent | 8173e34351795c4b189fad8824fa82b688bd0f31 | commit | diff |
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.
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 | diff | blob | history |