Whoops, we missed the last line for all blit()/fill() operations. Fix the
decrement to correctly count as many lines as given.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
dst = &dst[y * rb->stride + x * 4];
src = buf->data;
- while (--height) {
+ while (height--) {
memcpy(dst, src, 4 * width);
dst += rb->stride;
src += buf->stride;
dst = rb->map;
dst = &dst[y * rb->stride + x * 4];
- while (--height) {
+ while (height--) {
for (i = 0; i < width; ++i) {
((uint32_t*)dst)[i] = ((r & 0xff) << 16) |
((g & 0xff) << 8) |
dst = &dst[y * disp->fbdev.stride + x * disp->fbdev.bpp];
src = buf->data;
- while (--height) {
+ while (height--) {
memcpy(dst, src, 4 * width);
dst += disp->fbdev.stride;
src += buf->stride;
dst = &disp->fbdev.map[disp->fbdev.yres * disp->fbdev.stride];
dst = &dst[y * disp->fbdev.stride + x * disp->fbdev.bpp];
- while (--height) {
+ while (height--) {
for (i = 0; i < width; ++i) {
((uint32_t*)dst)[i] = ((r & 0xff) << 16) |
((g & 0xff) << 8) |