mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
image.c: targa_header needn't be global.
as noticed in vkQuake.
This commit is contained in:
parent
3f251ed5fc
commit
520397d93e
1 changed files with 2 additions and 3 deletions
|
@ -109,9 +109,7 @@ typedef struct targaheader_s {
|
||||||
unsigned char pixel_size, attributes;
|
unsigned char pixel_size, attributes;
|
||||||
} targaheader_t;
|
} targaheader_t;
|
||||||
|
|
||||||
#define TARGAHEADERSIZE 18 //size on disk
|
#define TARGAHEADERSIZE 18 /* size on disk */
|
||||||
|
|
||||||
targaheader_t targa_header;
|
|
||||||
|
|
||||||
int fgetLittleShort (FILE *f)
|
int fgetLittleShort (FILE *f)
|
||||||
{
|
{
|
||||||
|
@ -197,6 +195,7 @@ byte *Image_LoadTGA (FILE *fin, int *width, int *height)
|
||||||
int realrow; //johnfitz -- fix for upside-down targas
|
int realrow; //johnfitz -- fix for upside-down targas
|
||||||
qboolean upside_down; //johnfitz -- fix for upside-down targas
|
qboolean upside_down; //johnfitz -- fix for upside-down targas
|
||||||
stdio_buffer_t *buf;
|
stdio_buffer_t *buf;
|
||||||
|
targaheader_t targa_header;
|
||||||
|
|
||||||
targa_header.id_length = fgetc(fin);
|
targa_header.id_length = fgetc(fin);
|
||||||
targa_header.colormap_type = fgetc(fin);
|
targa_header.colormap_type = fgetc(fin);
|
||||||
|
|
Loading…
Reference in a new issue