aboutsummaryrefslogtreecommitdiff
path: root/src/libmemdraw/drawtest.c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/libmemdraw/drawtest.c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/libmemdraw/drawtest.c')
-rw-r--r--src/libmemdraw/drawtest.c14
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