]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - palette.c
added COMMANDLINEOPTION comments for every commandline option, these will be listed...
[xonotic/darkplaces.git] / palette.c
index fc642acb32636ab7fe63893123c13b54d51c5329..88eb7b600482f4419a3608351f8930716bda5527 100644 (file)
--- a/palette.c
+++ b/palette.c
@@ -46,7 +46,7 @@ void Palette_Setup8to24(void)
        palette_complete[255] = 0; // completely transparent black
 
        // FIXME: fullbright_start should be read from colormap.lmp
-       colormap = FS_LoadFile("gfx/colormap.lmp", true);
+       colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true);
        if (colormap && fs_filesize >= 16385)
                fullbright_start = 256 - colormap[16384];
        else
@@ -181,7 +181,7 @@ void Palette_Init(void)
        float gamma, scale, base;
        qbyte *pal;
        qbyte temp[256];
-       pal = (qbyte *)FS_LoadFile ("gfx/palette.lmp", false);
+       pal = (qbyte *)FS_LoadFile ("gfx/palette.lmp", tempmempool, false);
        if (pal && fs_filesize >= 768)
        {
                memcpy(host_basepal, pal, 765);
@@ -189,7 +189,7 @@ void Palette_Init(void)
        }
        else
        {
-               Con_DPrintf("Couldn't load gfx/palette.lmp, falling back on internal palette\n");
+               Con_DPrint("Couldn't load gfx/palette.lmp, falling back on internal palette\n");
                memcpy(host_basepal, host_quakepal, 765);
        }
        host_basepal[765] = host_basepal[766] = host_basepal[767] = 0; // LordHavoc: force the transparent color to black
@@ -197,12 +197,15 @@ void Palette_Init(void)
        gamma = 1;
        scale = 1;
        base = 0;
+// COMMANDLINEOPTION: -texgamma <number> sets the quake palette gamma, allowing you to make quake textures brighter/darker, not recommended
        i = COM_CheckParm("-texgamma");
        if (i)
                gamma = atof(com_argv[i + 1]);
+// COMMANDLINEOPTION: -texcontrast <number> sets the quake palette contrast, allowing you to make quake textures brighter/darker, not recommended
        i = COM_CheckParm("-texcontrast");
        if (i)
                scale = atof(com_argv[i + 1]);
+// COMMANDLINEOPTION: -texbrightness <number> sets the quake palette brightness (brightness of black), allowing you to make quake textures brighter/darker, not recommended
        i = COM_CheckParm("-texbrightness");
        if (i)
                base = atof(com_argv[i + 1]);