mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-18 23:52:02 +00:00
- added normal5x and normal6x
This commit is contained in:
parent
09bc6614cf
commit
e7f19b01cb
4 changed files with 11 additions and 1 deletions
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
CUSTOM_CVAR(Int, gl_texture_hqresize, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
CUSTOM_CVAR(Int, gl_texture_hqresize, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
||||||
{
|
{
|
||||||
if (self < 0 || self > 22)
|
if (self < 0 || self > 24)
|
||||||
{
|
{
|
||||||
self = 0;
|
self = 0;
|
||||||
}
|
}
|
||||||
|
@ -439,6 +439,10 @@ unsigned char *FTexture::CreateUpsampledTextureBuffer (unsigned char *inputBuffe
|
||||||
return normalNxHelper( &normalNx, 3, inputBuffer, inWidth, inHeight, outWidth, outHeight );
|
return normalNxHelper( &normalNx, 3, inputBuffer, inWidth, inHeight, outWidth, outHeight );
|
||||||
case 22:
|
case 22:
|
||||||
return normalNxHelper( &normalNx, 4, inputBuffer, inWidth, inHeight, outWidth, outHeight );
|
return normalNxHelper( &normalNx, 4, inputBuffer, inWidth, inHeight, outWidth, outHeight );
|
||||||
|
case 23:
|
||||||
|
return normalNxHelper( &normalNx, 5, inputBuffer, inWidth, inHeight, outWidth, outHeight );
|
||||||
|
case 24:
|
||||||
|
return normalNxHelper( &normalNx, 6, inputBuffer, inWidth, inHeight, outWidth, outHeight );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return inputBuffer;
|
return inputBuffer;
|
||||||
|
|
|
@ -2881,6 +2881,8 @@ OPTVAL_SCALE4X = "Scale4x";
|
||||||
OPTVAL_NORMAL2X = "Normal2x";
|
OPTVAL_NORMAL2X = "Normal2x";
|
||||||
OPTVAL_NORMAL3X = "Normal3x";
|
OPTVAL_NORMAL3X = "Normal3x";
|
||||||
OPTVAL_NORMAL4X = "Normal4x";
|
OPTVAL_NORMAL4X = "Normal4x";
|
||||||
|
OPTVAL_NORMAL5X = "Normal5x";
|
||||||
|
OPTVAL_NORMAL6X = "Normal6x";
|
||||||
OPTVAL_HQ2X = "hq2x";
|
OPTVAL_HQ2X = "hq2x";
|
||||||
OPTVAL_HQ3X = "hq3x";
|
OPTVAL_HQ3X = "hq3x";
|
||||||
OPTVAL_HQ4X = "hq4x";
|
OPTVAL_HQ4X = "hq4x";
|
||||||
|
|
|
@ -2188,6 +2188,8 @@ OptionValue "HqResizeModes"
|
||||||
20, "$OPTVAL_NORMAL2X"
|
20, "$OPTVAL_NORMAL2X"
|
||||||
21, "$OPTVAL_NORMAL3X"
|
21, "$OPTVAL_NORMAL3X"
|
||||||
22, "$OPTVAL_NORMAL4X"
|
22, "$OPTVAL_NORMAL4X"
|
||||||
|
23, "$OPTVAL_NORMAL5X"
|
||||||
|
24, "$OPTVAL_NORMAL6X"
|
||||||
}
|
}
|
||||||
|
|
||||||
OptionValue "HqResizeModesNoMMX"
|
OptionValue "HqResizeModesNoMMX"
|
||||||
|
|
|
@ -595,10 +595,12 @@ class GLTextureGLOptions : OptionMenu
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
case 18:
|
case 18:
|
||||||
|
case 23:
|
||||||
multiplier = 25;
|
multiplier = 25;
|
||||||
break;
|
break;
|
||||||
case 17:
|
case 17:
|
||||||
case 19:
|
case 19:
|
||||||
|
case 24:
|
||||||
multiplier = 36;
|
multiplier = 36;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue