1
0
Fork 0
forked from len0rd/rockbox

Fix a drawing bug where rectangles stop drawing too early.

As far as I can say only one file is affected. The loops needs to
go one more time since the end pointer is on the last pixel, not
beyond it.

Change-Id: Ie629138f8399b927bef7bad3847ef42db37e2fed
This commit is contained in:
Michael Sevakis 2012-05-19 06:02:24 -04:00
parent 6eebdb3bc9
commit 0bda1e1504

View file

@ -160,7 +160,7 @@ void lcd_clear_viewport(void)
memset16(dst, current_vp->fg_pattern, len);
dst += step;
}
while (dst < dst_end);
while (dst <= dst_end);
}
else
{
@ -171,7 +171,7 @@ void lcd_clear_viewport(void)
memset16(dst, current_vp->bg_pattern, len);
dst += step;
}
while (dst < dst_end);
while (dst <= dst_end);
}
else
{
@ -181,7 +181,7 @@ void lcd_clear_viewport(void)
len * sizeof(fb_data));
dst += step;
}
while (dst < dst_end);
while (dst <= dst_end);
}
}
@ -575,7 +575,7 @@ void lcd_fillrect(int x, int y, int width, int height)
}
dst += step;
}
while (dst < dst_end);
while (dst <= dst_end);
}
/* About Rockbox' internal monochrome bitmap format: