pidgin: 958b2ee1: Fix drawing for vertical progressbar.
sadrul at pidgin.im
sadrul at pidgin.im
Sun Apr 12 17:36:15 EDT 2009
-----------------------------------------------------------------
Revision: 958b2ee13950a6cddd94ab271e24e8b7a03b186e
Ancestor: 75ee09003fbd86c52d0d116bdfd24212547c5c2c
Author: sadrul at pidgin.im
Date: 2009-04-12T21:28:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/958b2ee13950a6cddd94ab271e24e8b7a03b186e
Modified files:
finch/libgnt/gntprogressbar.c
ChangeLog:
Fix drawing for vertical progressbar.
-------------- next part --------------
============================================================
--- finch/libgnt/gntprogressbar.c ab83a0a5419130ebb42c516368d83a927dceddc9
+++ finch/libgnt/gntprogressbar.c 814b9edb0867cdabd820e508f76dc268183683ad
@@ -92,17 +92,17 @@ gnt_progress_bar_draw (GntWidget *widget
/* background */
for (i = 0; i < widget->priv.width; i++)
- mvwvline (widget->window, 0, i, ' ' | color | A_REVERSE, widget->priv.height);
+ mvwvline (widget->window, 0, i, ' ' | color, widget->priv.height);
/* foreground */
for (i = 0; i < widget->priv.width; i++)
- mvwvline (widget->window, start, i, ' ' | color, end);
+ mvwvline (widget->window, start, i, ACS_CKBOARD | color | A_REVERSE, end);
/* text */
if (priv->show_value) {
pos = widget->priv.height / 2 - strlen (progress) / 2;
for (i = 0; i < progress[i]; i++, pos++) {
- wattrset (widget->window, color | ((pos >= start && pos <= end) ? A_NORMAL : A_REVERSE));
+ wattrset (widget->window, color | ((pos < start || pos > end) ? A_NORMAL : A_REVERSE));
mvwprintw (widget->window, pos, widget->priv.width / 2, "%c\n", progress[i]);
}
wattrset (widget->window, color);
More information about the Commits
mailing list