From: John Tsiombikas Date: Thu, 15 Feb 2018 05:01:36 +0000 (+0200) Subject: - moved image rgb24->rgb16 conversion to gfxutil X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=commitdiff_plain;h=e7220b01f07d1df5a45fe7c83608d4157881956a - moved image rgb24->rgb16 conversion to gfxutil - ugly infcubes textures --- diff --git a/src/gfxutil.c b/src/gfxutil.c index b82a612..37eb4c5 100644 --- a/src/gfxutil.c +++ b/src/gfxutil.c @@ -202,3 +202,16 @@ void blur_grey_vert(uint16_t *dest, uint16_t *src, int xsz, int ysz, int rad, in BLUR(ysz, xsz, pixel_step, scanline_step); } + +void convimg_rgb24_rgb16(uint16_t *dest, unsigned char *src, int xsz, int ysz) +{ + int i; + int npixels = xsz * ysz; + + for(i=0; i