X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgfxutil.c;h=37eb4c5ea12d2fcb244836615f4c4ea949bb4c08;hp=b82a612089960b8fbb5fa3fec3ebca5c2183af6f;hb=e7220b01f07d1df5a45fe7c83608d4157881956a;hpb=a1ede8e271fee1b4d029752603096db2be780e67 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