]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
added a remaining < 1 check to centerprint display code, this might have fixed the...
[xonotic/darkplaces.git] / gl_draw.c
index 85540ad21b921c32589925eb1bcdc55333ffad0e..41836e13a3199864547c879cfb6868359d82b4c4 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -31,7 +31,7 @@ static rtexture_t *char_texture;
 /* Support Routines */
 
 #define FONT_FILESIZE 13468
-#define MAX_CACHED_PICS 256
+#define MAX_CACHED_PICS 1024
 #define CACHEPICHASHSIZE 256
 static cachepic_t *cachepichash[CACHEPICHASHSIZE];
 static cachepic_t cachepics[MAX_CACHED_PICS];
@@ -326,7 +326,7 @@ cachepic_t  *Draw_CachePic (const char *path, qboolean persistent)
 
        if (numcachepics == MAX_CACHED_PICS)
        {
-               Con_Printf ("Draw_CachePic: numcachepics == MAX_CACHED_PICS");
+               Con_Printf ("Draw_CachePic: numcachepics == MAX_CACHED_PICS\n");
                // FIXME: support NULL in callers?
                return cachepics; // return the first one
        }
@@ -339,7 +339,7 @@ cachepic_t  *Draw_CachePic (const char *path, qboolean persistent)
        flags = TEXF_ALPHA;
        if (persistent)
                flags |= TEXF_PRECACHE;
-       if (!strcmp(path, "gfx/colorcontrol/ditherpattern.tga"))
+       if (!strcmp(path, "gfx/colorcontrol/ditherpattern"))
                flags |= TEXF_CLAMP;
 
        // load the pic from disk
@@ -368,23 +368,23 @@ cachepic_t        *Draw_CachePic (const char *path, qboolean persistent)
 
        if (pic->tex == NULL && !strcmp(path, "gfx/conchars"))
                pic->tex = draw_generateconchars();
-       if (pic->tex == NULL && !strcmp(path, "ui/mousepointer.tga"))
+       if (pic->tex == NULL && !strcmp(path, "ui/mousepointer"))
                pic->tex = draw_generatemousepointer();
-       if (pic->tex == NULL && !strcmp(path, "gfx/prydoncursor001.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/prydoncursor001"))
                pic->tex = draw_generatemousepointer();
-       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair1.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair1"))
                pic->tex = draw_generatecrosshair(0);
-       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair2.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair2"))
                pic->tex = draw_generatecrosshair(1);
-       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair3.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair3"))
                pic->tex = draw_generatecrosshair(2);
-       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair4.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair4"))
                pic->tex = draw_generatecrosshair(3);
-       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair5.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair5"))
                pic->tex = draw_generatecrosshair(4);
-       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair6.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/crosshair6"))
                pic->tex = draw_generatecrosshair(5);
-       if (pic->tex == NULL && !strcmp(path, "gfx/colorcontrol/ditherpattern.tga"))
+       if (pic->tex == NULL && !strcmp(path, "gfx/colorcontrol/ditherpattern"))
                pic->tex = draw_generateditherpattern();
        if (pic->tex == NULL)
        {
@@ -422,7 +422,7 @@ cachepic_t *Draw_NewPic(const char *picname, int width, int height, int alpha, u
                {
                        if (numcachepics == MAX_CACHED_PICS)
                        {
-                               Con_Printf ("Draw_NewPic: numcachepics == MAX_CACHED_PICS");
+                               Con_Printf ("Draw_NewPic: numcachepics == MAX_CACHED_PICS\n");
                                // FIXME: support NULL in callers?
                                return cachepics; // return the first one
                        }