diff options
Diffstat (limited to 'src/libmemdraw/drawtest.c')
-rw-r--r-- | src/libmemdraw/drawtest.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libmemdraw/drawtest.c b/src/libmemdraw/drawtest.c index 07cda45d..fb883d4e 100644 --- a/src/libmemdraw/drawtest.c +++ b/src/libmemdraw/drawtest.c @@ -57,7 +57,7 @@ rdb(void) int iprint(char *fmt, ...) { - int n; + int n; va_list va; char buf[1024]; @@ -362,7 +362,7 @@ fill(Memimage *img, uchar *ucbits) } img->data->bdata = data; } - + } /* @@ -391,7 +391,7 @@ verifyonemask(void) drawonepixel(dst, dp, src, sp, mask, mp); memmove(mask->data->bdata, maskbits, mask->width*sizeof(u32int)*Yrange); memmove(savedstbits, dst->data->bdata, dst->width*sizeof(u32int)*Yrange); - + memmove(dst->data->bdata, dstbits, dst->width*sizeof(u32int)*Yrange); memimagedraw(dst, Rect(dp.x, dp.y, dp.x+1, dp.y+1), src, sp, mask, mp, SoverD); memmove(mask->data->bdata, maskbits, mask->width*sizeof(u32int)*Yrange); @@ -606,7 +606,7 @@ replicate(Memimage *i, Memimage *tmp) else r.max.y = r.min.y+3 + nrand(Yrange-(r.min.y+3)); } - assert(r.min.x >= 0); + assert(r.min.x >= 0); assert(r.max.x <= Xrange); assert(r.min.y >= 0); assert(r.max.y <= Yrange); @@ -871,7 +871,7 @@ getmask(Memimage *img, Point pt) #define DBG if(0) /* * Write a pixel to img at point pt. - * + * * We do this by reading a 32-bit little endian * value from p and then writing it back * after tweaking the appropriate bits. Because @@ -896,7 +896,7 @@ DBG print("v %.8lux...", v); /* * Sub-byte greyscale pixels. We need to skip the leftmost pt.x%npack pixels, * which is equivalent to skipping the rightmost npack - pt.x%npack - 1 pixels. - */ + */ npack = 8/bpp; sh = bpp*(npack - pt.x%npack - 1); bits = RGB2K(r,g,b); @@ -959,7 +959,7 @@ DBG print("v %.8lux\n", v); p[0] = v; p[1] = v>>8; p[2] = v>>16; - p[3] = v>>24; + p[3] = v>>24; } #undef DBG |