I made a small patch to make all low res textures to look a lot more better with the well known (LGPL) HQX scaler.
Here is the patch:
--- build/src/polymost.c +++ build/src/polymost_patched.c @@ -1157,6 +10325,32 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das } } } + + #if 1 + #include <hqx.h> + #define HQX 4 + #define HQX_fun hq4x_32 + + //if ( !(pth->flags & PTH_HIGHTILE) ) + { + vec2_t siz2 = { HQX * siz.x, HQX * siz.y }; + + coltype *pic2 = (coltype*)Xmalloc( siz2.x * siz2.y * sizeof(coltype) ); + + static int hq_initiated = 0; + if (!hq_initiated) + { + hqxInit(); + hq_initiated = 1; + } + + HQX_fun( (uint32_t*)pic, (uint32_t*)pic2, siz.x, siz.y ); + + Bfree( pic ); + + pic = pic2; + + siz.x = siz2.x; siz.y = siz2.y; + + tsiz.x *= HQX; tsiz.y *= HQX; + } + #endif } if (doalloc) bglGenTextures(1,(GLuint *)&pth->glpic); //# of textures (make OpenGL allocate structure)
You can get the HQX library from here. Cheers.