X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgfxutil.c;h=a8d7edce8387d364e949b112053bf81ae70d961b;hp=b82a612089960b8fbb5fa3fec3ebca5c2183af6f;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hpb=95432d94ee6d5cd0c1f71c36b78e195f1b96892f diff --git a/src/gfxutil.c b/src/gfxutil.c index b82a612..a8d7edc 100644 --- a/src/gfxutil.c +++ b/src/gfxutil.c @@ -1,3 +1,4 @@ +#include #include "gfxutil.h" #include "demo.h" @@ -202,3 +203,41 @@ 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