banan-os/userspace/programs/WindowServer/Framebuffer.h

17 lines
225 B
C
Raw Normal View History

#pragma once
#include "Utils.h"
struct Framebuffer
{
int fd;
uint32_t* mmap;
int32_t width;
int32_t height;
uint8_t bpp;
Rectangle area() const { return { 0, 0, width, height }; }
};
Framebuffer open_framebuffer();