Userland: Add FB_FLUSH ioctl for fbdev

This commit is contained in:
Sahan Fernando 2021-06-12 22:46:54 +10:00 committed by Andreas Kling
commit 974e996d33
Notes: sideshowbarker 2024-07-18 11:31:36 +09:00
5 changed files with 27 additions and 0 deletions

View file

@ -38,4 +38,9 @@ ALWAYS_INLINE int fb_set_buffer(int fd, int index)
return ioctl(fd, FB_IOCTL_SET_BUFFER, index);
}
ALWAYS_INLINE int fb_flush_buffer(int fd, FBRect* rect)
{
return ioctl(fd, FB_IOCTL_FLUSH_BUFFER, rect);
}
__END_DECLS