diff --git a/src/graphics.c b/src/graphics.c index 33560fcdd..df5b96ca8 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -147,11 +147,34 @@ pixel *resample_img(pixel *src, int sw, int sh, int rw, int rh) pixel *q; q = malloc(rw*rh*PIXELSIZE); //TODO: Actual resampling, this is just cheap nearest pixel crap - for (y=0; y sw && rh > sh){ + float fx, fy, fyc, fxc, intp; + pixel tr, tl, br, bl; + //Bilinear interpolation for upscaling + for (y=0; y