mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix hud scaling
This commit is contained in:
parent
66ab41534c
commit
0301cd6fa8
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,7 @@ Draw_CachePic (const char *path, qboolean alpha)
|
|||
|
||||
if (!strcmp (path + strlen (path) - 4, ".lmp")) {
|
||||
// Load the picture..
|
||||
qpic_t *dat = (qpic_t *) QFS_LoadTempFile (path);
|
||||
qpic_t *dat = (qpic_t *) QFS_LoadFile (path, 0);
|
||||
if (!dat)
|
||||
Sys_Error ("Draw_CachePic: failed to load %s", path);
|
||||
|
||||
|
@ -243,6 +243,7 @@ Draw_CachePic (const char *path, qboolean alpha)
|
|||
pic->pic.height = dat->height;
|
||||
if (!strcmp (path, "gfx/menuplyr.lmp"))
|
||||
memcpy (menuplyr_pixels, dat->data, dat->width * dat->height);
|
||||
free (dat);
|
||||
} else
|
||||
Sys_Error ("Draw_CachePic: failed to load %s", path);
|
||||
|
||||
|
|
Loading…
Reference in a new issue