This commit is contained in:
robijn
2001-12-30 00:31:54 +00:00
parent 71056ec551
commit 4ee73421fb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ drivers_vbar( int x, int y, int len, int promille, int pattern )
* have different pixels per char
*/
old_len = (long) - display_props->cellheight * len * promille / 1000;
old_len = (long) display_props->cellheight * len * promille / 1000;
ForAllDrivers(drv) {
if( drv->old_vbar ) {
+2 -2
View File
@@ -294,8 +294,8 @@ draw_frame (LinkedList * list,
if ((w->x > 0) && (w->y > 0)) {
if (w->length > 0) {
/* Improvised len and promille while we have the old widget language */
int full_len = - display_props->height; /* Yeah negative length because the bar grows in the */
int promille = (long) 1000 * w->length / display_props->cellheight / -full_len;
int full_len = display_props->height;
int promille = (long) 1000 * w->length / display_props->cellheight / full_len;
drivers_vbar (w->x, display_props->height, full_len, promille, BAR_PATTERN_FILLED);
} else if (w->length < 0) {
/* TODO: Rearrange stuff to get down-extending