Mercurial > audlegacy
diff audacious/textbox.c @ 124:428d3865de3c trunk
[svn] More bitmap-font related stuff, working on a scrolling implementation too. (You can now enable or disable bitmap font support in Preferences.)
author | nenolod |
---|---|
date | Mon, 07 Nov 2005 23:26:55 -0800 |
parents | cb178e5ad177 |
children | f490def08b5c |
line wrap: on
line diff
--- a/audacious/textbox.c Mon Nov 07 22:13:25 2005 -0800 +++ b/audacious/textbox.c Mon Nov 07 23:26:55 2005 -0800 @@ -74,7 +74,7 @@ TextBox *tb = TEXT_BOX(data); if (!tb->tb_is_dragging) { - tb->tb_offset++; + tb->tb_offset += 5; if (tb->tb_offset >= tb->tb_pixmap_width) tb->tb_offset -= tb->tb_pixmap_width; widget_draw(WIDGET(tb)); @@ -417,7 +417,7 @@ if (tb->tb_is_scrollable) { if (tb->tb_scroll_enabled && !tb->tb_timeout_tag) { gint tag; - tag = TEXTBOX_SCROLL_SMOOTH_TIMEOUT; + tag = TEXTBOX_SCROLL_SMOOTH_TIMEOUT * 5; tb->tb_timeout_tag = gtk_timeout_add(tag, textbox_scroll, tb); } }