1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

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
parent 34e9fa4d3b
commit 974e996d33
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