Mercurial > audlegacy
changeset 3956:8be86c0b040e
fix possible glitch which could be triggered by switching skin while textbox was scrolling
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 16 Nov 2007 13:28:52 +0100 |
parents | 37963a32f627 |
children | fed07be6b708 |
files | src/audacious/ui_skinned_textbox.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c Fri Nov 16 04:56:04 2007 -0600 +++ b/src/audacious/ui_skinned_textbox.c Fri Nov 16 13:28:52 2007 +0100 @@ -591,10 +591,12 @@ if (priv->offset >= (priv->pixmap_width - textbox->width)) { priv->scroll_back = TRUE; priv->scroll_dummy = 0; + priv->offset = priv->pixmap_width - textbox->width; } if (priv->offset <= 0) { priv->scroll_back = FALSE; priv->scroll_dummy = 0; + priv->offset = 0; } } else { // oneway scroll