Ripristinate modifiche
git-svn-id: svn://10.65.10.50/trunk@2898 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b097d3a1d2
commit
72d1bcd8db
@ -109,11 +109,11 @@ void TIndwin::update_bar()
|
||||
r.top = (int)_bar;
|
||||
r.bottom = r.top + 2*CHARY;
|
||||
|
||||
const int width = r.right - r.left;
|
||||
RCT b = r;
|
||||
set_pen(COLOR_BLACK);
|
||||
|
||||
/*
|
||||
set_pen(COLOR_BLACK);
|
||||
const int width = r.right - r.left;
|
||||
set_brush(COLOR_BLUE);
|
||||
b.right = b.left + int(width*prc);
|
||||
xvt_dwin_draw_rect(win(), &b);
|
||||
@ -130,15 +130,15 @@ void TIndwin::update_bar()
|
||||
*/
|
||||
|
||||
WINDOW w = win();
|
||||
b.right = b.left + int(width*prc);
|
||||
b.right = b.left + int(r.right*prc);
|
||||
xi_draw_3d_rect(w, &b, FALSE, 2, 0, 0, 0);
|
||||
|
||||
set_brush(COLOR_WHITE);
|
||||
b.left = b.right; b.right = r.right;
|
||||
xvt_dwin_draw_rect(w, &b);
|
||||
xi_draw_3d_rect(w, &b, TRUE, 2, 0, 0, 0);
|
||||
|
||||
char n[8]; sprintf(n, "%d%%", int(100*prc));
|
||||
xvt_dwin_draw_text(w, r.left+width/2-CHARX, (r.bottom+r.top+CHARY)/2-3, n, -1);
|
||||
xvt_dwin_draw_text(w, r.left+r.right/2-CHARX, (r.bottom+r.top+CHARY)/2-3, n, -1);
|
||||
|
||||
check_stop();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user