rulimine/stage23/lib/fb.c
2021-03-02 10:23:43 +01:00

15 lines
412 B
C

#include <stdint.h>
#include <stdbool.h>
#include <lib/fb.h>
#include <drivers/vbe.h>
#include <drivers/gop.h>
bool fb_init(struct fb_info *ret,
uint16_t target_width, uint16_t target_height, uint16_t target_bpp) {
#if defined (bios)
return init_vbe(ret, target_width, target_height, target_bpp);
#elif defined (uefi)
return init_gop(ret, target_width, target_height, target_bpp);
#endif
}