1
1

* view.c (view_percent): Fixed coordinate computation.

Этот коммит содержится в:
Roland Illig 2005-08-16 08:16:12 +00:00
родитель d76dc9218b
Коммит 7b35eaa34d
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,7 @@
2005-08-16 Roland Illig <roland.illig@gmx.de>
* view.c (view_percent): Fixed coordinate computation.
2005-08-15 Roland Illig <roland.illig@gmx.de>
* view.c (view_growbuf_read_until): When using mc_read, recover

Просмотреть файл

@ -1479,6 +1479,7 @@ view_update_bytes_per_line (WView *view)
static void
view_percent (WView *view, offset_type p)
{
const screen_dimen top = view->status_area.top;
const screen_dimen right = view->status_area.left + view->status_area.width;
const screen_dimen height = view->status_area.height;
int percent;
@ -1497,7 +1498,7 @@ view_percent (WView *view, offset_type p)
else
percent = p * 100 / filesize;
widget_move (view, view->dpy_frame_size, right - 4);
widget_move (view, top, right - 4);
printw (str_unconst ("%3d%%"), percent);
}