This commit is contained in:
p.kosyh 2009-11-04 18:47:56 +00:00
parent d8bc5adbde
commit 2af7bcd326
3 changed files with 6 additions and 5 deletions

View file

@ -2462,13 +2462,13 @@ 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->num && line->y + line->h > h)
if (line->w > w)
w = line->w;
if (line->num && line->y + line->h > h)
h = line->y + line->h;
}
if (pw)

View file

@ -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');
}

View file

@ -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);