fix
This commit is contained in:
parent
d8bc5adbde
commit
2af7bcd326
|
@ -2462,12 +2462,12 @@ void txt_layout_real_size(layout_t lay, int *pw, int *ph)
|
|||
if (!layout)
|
||||
return;
|
||||
for (line = layout->lines; line; line = line->next) {
|
||||
if (line->w > w)
|
||||
w = line->w;
|
||||
|
||||
while (!line->num && line->next)
|
||||
line = line->next;
|
||||
|
||||
if (line->w > w)
|
||||
w = line->w;
|
||||
|
||||
if (line->num && line->y + line->h > h)
|
||||
h = line->y + line->h;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ char *getpath(const char *d, const char *n)
|
|||
return p;
|
||||
}
|
||||
|
||||
static int is_space(int c)
|
||||
int is_space(int c)
|
||||
{
|
||||
return (c == ' ' || c == '\t');
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ struct parser {
|
|||
void *p;
|
||||
};
|
||||
|
||||
extern int is_space(int c);
|
||||
extern int parse_ini(const char *path, struct parser *cmd_parser);
|
||||
extern char *getpath(const char *d, const char *n);
|
||||
extern char *strip(char *s);
|
||||
|
|
Reference in a new issue