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:
parent
6eebdb3bc9
commit
0bda1e1504
1 changed files with 4 additions and 4 deletions
|
|
@ -160,7 +160,7 @@ void lcd_clear_viewport(void)
|
||||||
memset16(dst, current_vp->fg_pattern, len);
|
memset16(dst, current_vp->fg_pattern, len);
|
||||||
dst += step;
|
dst += step;
|
||||||
}
|
}
|
||||||
while (dst < dst_end);
|
while (dst <= dst_end);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -171,7 +171,7 @@ void lcd_clear_viewport(void)
|
||||||
memset16(dst, current_vp->bg_pattern, len);
|
memset16(dst, current_vp->bg_pattern, len);
|
||||||
dst += step;
|
dst += step;
|
||||||
}
|
}
|
||||||
while (dst < dst_end);
|
while (dst <= dst_end);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -181,7 +181,7 @@ void lcd_clear_viewport(void)
|
||||||
len * sizeof(fb_data));
|
len * sizeof(fb_data));
|
||||||
dst += step;
|
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;
|
dst += step;
|
||||||
}
|
}
|
||||||
while (dst < dst_end);
|
while (dst <= dst_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* About Rockbox' internal monochrome bitmap format:
|
/* About Rockbox' internal monochrome bitmap format:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue