mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
Noise reduction in draw vs gl_draw
This commit is contained in:
parent
954b2148f7
commit
2b4c31b7ae
2 changed files with 13 additions and 13 deletions
|
@ -69,8 +69,8 @@ typedef struct cachepic_s {
|
||||||
} cachepic_t;
|
} cachepic_t;
|
||||||
|
|
||||||
#define MAX_CACHED_PICS 128
|
#define MAX_CACHED_PICS 128
|
||||||
cachepic_t menu_cachepics[MAX_CACHED_PICS];
|
cachepic_t cachepics[MAX_CACHED_PICS];
|
||||||
int menu_numcachepics;
|
int numcachepics;
|
||||||
|
|
||||||
|
|
||||||
qpic_t *
|
qpic_t *
|
||||||
|
@ -98,14 +98,14 @@ Draw_CachePic (char *path, qboolean alpha)
|
||||||
int i;
|
int i;
|
||||||
qpic_t *dat;
|
qpic_t *dat;
|
||||||
|
|
||||||
for (pic = menu_cachepics, i = 0; i < menu_numcachepics; pic++, i++)
|
for (pic = cachepics, i = 0; i < numcachepics; pic++, i++)
|
||||||
if (!strcmp (path, pic->name))
|
if (!strcmp (path, pic->name))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (i == menu_numcachepics) {
|
if (i == numcachepics) {
|
||||||
if (menu_numcachepics == MAX_CACHED_PICS)
|
if (numcachepics == MAX_CACHED_PICS)
|
||||||
Sys_Error ("menu_numcachepics == MAX_CACHED_PICS");
|
Sys_Error ("menu_numcachepics == MAX_CACHED_PICS");
|
||||||
menu_numcachepics++;
|
numcachepics++;
|
||||||
strcpy (pic->name, path);
|
strcpy (pic->name, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,8 +69,8 @@ typedef struct cachepic_s {
|
||||||
} cachepic_t;
|
} cachepic_t;
|
||||||
|
|
||||||
#define MAX_CACHED_PICS 128
|
#define MAX_CACHED_PICS 128
|
||||||
cachepic_t menu_cachepics[MAX_CACHED_PICS];
|
cachepic_t cachepics[MAX_CACHED_PICS];
|
||||||
int menu_numcachepics;
|
int numcachepics;
|
||||||
|
|
||||||
|
|
||||||
qpic_t *
|
qpic_t *
|
||||||
|
@ -98,14 +98,14 @@ Draw_CachePic (char *path, qboolean alpha)
|
||||||
int i;
|
int i;
|
||||||
qpic_t *dat;
|
qpic_t *dat;
|
||||||
|
|
||||||
for (pic = menu_cachepics, i = 0; i < menu_numcachepics; pic++, i++)
|
for (pic = cachepics, i = 0; i < numcachepics; pic++, i++)
|
||||||
if (!strcmp (path, pic->name))
|
if (!strcmp (path, pic->name))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (i == menu_numcachepics) {
|
if (i == numcachepics) {
|
||||||
if (menu_numcachepics == MAX_CACHED_PICS)
|
if (numcachepics == MAX_CACHED_PICS)
|
||||||
Sys_Error ("menu_numcachepics == MAX_CACHED_PICS");
|
Sys_Error ("numcachepics == MAX_CACHED_PICS");
|
||||||
menu_numcachepics++;
|
numcachepics++;
|
||||||
strcpy (pic->name, path);
|
strcpy (pic->name, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue