mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Compilation fix: move variables declarations to top.
This commit is contained in:
parent
8b4daed148
commit
29fb051fc9
@ -592,15 +592,15 @@ generic_dialog_layouter(struct dialog_data *dlg_data)
|
|||||||
struct terminal *term = dlg_data->win->term;
|
struct terminal *term = dlg_data->win->term;
|
||||||
int w = dialog_max_width(term);
|
int w = dialog_max_width(term);
|
||||||
int height = dialog_max_height(term);
|
int height = dialog_max_height(term);
|
||||||
int rw;
|
int x = 0, y, rw;
|
||||||
|
|
||||||
#ifdef CONFIG_UTF_8
|
#ifdef CONFIG_UTF_8
|
||||||
if (term->utf8)
|
if (term->utf8)
|
||||||
rw = int_min(w, utf8_ptr2cells(dlg_data->dlg->title, NULL));
|
rw = int_min(w, utf8_ptr2cells(dlg_data->dlg->title, NULL));
|
||||||
else
|
else
|
||||||
#endif /* CONFIG_UTF_8 */
|
#endif /* CONFIG_UTF_8 */
|
||||||
rw = int_min(w, strlen(dlg_data->dlg->title));
|
rw = int_min(w, strlen(dlg_data->dlg->title));
|
||||||
int y = dlg_data->dlg->layout.padding_top ? 0 : -1;
|
y = dlg_data->dlg->layout.padding_top ? 0 : -1;
|
||||||
int x = 0;
|
|
||||||
|
|
||||||
format_widgets(term, dlg_data, x, &y, w, height, &rw, 1);
|
format_widgets(term, dlg_data, x, &y, w, height, &rw, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user