shoreline/linuxfb.h
Tobias Schramm 1b17527e7d linuxfb: Add support for writing at offset inside framebuffer
Some fb drivers are incredibly broken and have messed up allignment
of their internal fb memory. Thus they require an offset to be added
to all data written to display images correctly
2020-01-06 03:30:33 +01:00

17 lines
257 B
C

#ifndef _LINUXFB_H_
#define _LINUXFB_H_
#include "framebuffer.h"
#include "frontend.h"
struct linuxfb {
struct frontend front;
struct fb* fb;
char* fbdev;
int fd;
char* fbmem;
struct fb_var_screeninfo vscreen;
unsigned int pixel_offset;
};
#endif