mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 14:37:46 -04:00
fbdev: don't clear more than needed
it wastes time for something like psx that may change modes ingame
This commit is contained in:
parent
f2a685be70
commit
fdfcdca978
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ out:
|
|||
|
||||
void vout_fbdev_clear(struct vout_fbdev *fbdev)
|
||||
{
|
||||
memset(fbdev->mem, 0, fbdev->mem_size);
|
||||
if (fbdev->mem)
|
||||
memset(fbdev->mem, 0, fbdev->fb_size * fbdev->buffer_count);
|
||||
}
|
||||
|
||||
void vout_fbdev_clear_lines(struct vout_fbdev *fbdev, int y, int count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue