mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
fbdev: fix clear_lines
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@891 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
69dfeea159
commit
6bc3d94d1e
1 changed files with 3 additions and 3 deletions
|
@ -134,11 +134,11 @@ void vout_fbdev_clear(struct vout_fbdev *fbdev)
|
||||||
|
|
||||||
void vout_fbdev_clear_lines(struct vout_fbdev *fbdev, int y, int count)
|
void vout_fbdev_clear_lines(struct vout_fbdev *fbdev, int y, int count)
|
||||||
{
|
{
|
||||||
int stride = fbdev->fbvar_new.xres * fbdev->fbvar_new.bits_per_pixel / 8;
|
int stride = fbdev->fbvar_new.xres_virtual * fbdev->fbvar_new.bits_per_pixel / 8;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (y + count > fbdev->fbvar_new.yres)
|
if (y + count > fbdev->top_border + fbdev->fbvar_new.yres)
|
||||||
count = fbdev->fbvar_new.yres - y;
|
count = fbdev->top_border + fbdev->fbvar_new.yres - y;
|
||||||
|
|
||||||
if (y >= 0 && count > 0)
|
if (y >= 0 && count > 0)
|
||||||
for (i = 0; i < fbdev->buffer_count; i++)
|
for (i = 0; i < fbdev->buffer_count; i++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue