1
1

Place choose panel codepage dialog at the centre of the screen.

Этот коммит содержится в:
Andrew Borodin 2009-10-15 10:51:04 +04:00
родитель 47c4744347
Коммит 2328baf7a3

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

@ -3126,19 +3126,10 @@ set_panel_encoding (WPanel *panel)
const char *encoding = NULL;
char *cd_path;
#ifdef HAVE_CHARSET
int center_x, center_y;
const char *errmsg;
int r;
if (horizontal_split) {
center_y = panel->widget.y + panel->widget.lines/2;
center_x = COLS/2;
} else {
center_y = LINES/2;
center_x = panel->widget.x + panel->widget.cols/2;
}
r = select_charset (center_y, center_x, source_codepage, FALSE);
r = select_charset (-1, -1, source_codepage, FALSE);
if (r == SELECT_CHARSET_CANCEL)
return; /* Cancel */