X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgfxutil.c;h=811915ed7530b09156bae68d5d85c9ac52ea73a3;hp=0257f79be2009350d97689f3b64bad0947c63b49;hb=13f4229ee540e22a5f3ede4d345ae1269cd708d3;hpb=3d4c7952e336fb4c7a914c861f12c15e64f9ec1e diff --git a/src/gfxutil.c b/src/gfxutil.c index 0257f79..811915e 100644 --- a/src/gfxutil.c +++ b/src/gfxutil.c @@ -142,3 +142,47 @@ void draw_line(int x0, int y0, int x1, int y1, unsigned short color) } } } + + +/* TODO bound blur rad to image size to avoid inner loop conditionals */ +/* TODO make version with pow2 (rad*2+1) to avoid div with count everywhere */ +void blur_grey_horiz(uint16_t *dest, uint16_t *src, int xsz, int ysz, int rad) +{ + int i, j; + + for(i=0; i