cleanups
This commit is contained in:
parent
35cfad64c1
commit
0a7e14a21c
|
@ -291,7 +291,9 @@ static int game_theme_scale(int w, int h)
|
|||
t->menu_font_size *= v;
|
||||
t->menu_button_x *= v; t->menu_button_x += xoff;
|
||||
t->menu_button_y *= v; t->menu_button_y += yoff;
|
||||
|
||||
t->cur_x *= v;
|
||||
t->cur_y *= v;
|
||||
|
||||
t->scale = v;
|
||||
t->xoff = xoff;
|
||||
t->yoff = yoff;
|
||||
|
|
|
@ -267,6 +267,10 @@ int parse_full_path(const char *v, void *data)
|
|||
char **p = ((char **)data);
|
||||
if (*p)
|
||||
free(*p);
|
||||
if (!v[0]) {
|
||||
*p = strdup("");
|
||||
return (*p)?0:-1;
|
||||
}
|
||||
getdir(cwd, sizeof(cwd));
|
||||
*p = malloc(strlen(v) + strlen(cwd) + 2);
|
||||
if (!*p)
|
||||
|
|
2048
theme-hack.diff
2048
theme-hack.diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue