Code

screen_play: make center_playing_item aware of scroll offset
authorJeffrey Middleton <jefromi@gmail.com>
Wed, 15 Apr 2009 19:07:41 +0000 (14:07 -0500)
committerMax Kellermann <max@duempel.org>
Fri, 17 Apr 2009 07:49:16 +0000 (09:49 +0200)
commit66450f4e9ee428d28d8e2a5159fb92ca8b1da7ec
tree0f948c4647208b7d86263a0fce5bebede55c30c6
parenta007c0e2d544ca10bcfb714ef62017472eadf035
screen_play: make center_playing_item aware of scroll offset

When moving the cursor to make sure it is visible after recentering,
move it to the offset position from the edge of the screen.
(Previously, it was placed at the edge, causing the offset to force the
screen to scroll.)
src/screen_play.c