5 #include <lib/base/eerror.h>
10 unsigned int xRes, yRes, stride, bpp;
12 struct fb_var_screeninfo screeninfo, oldscreen;
14 __u16 red[256], green[256], blue[256], trans[256];
15 static fbClass *instance;
19 int m_number_of_pages;
21 fbClass(const char *fb="/dev/fb/0");
27 void enableManualBlit();
28 void disableManualBlit();
29 int showConsole(int state);
30 int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
31 int Available() { return available; }
33 int getNumPages() { return m_number_of_pages; }
35 int setOffset(int off);
38 unsigned int Stride() { return stride; }
39 fb_cmap *CMAP() { return &cmap; }
41 fbClass(const char *fb="/dev/fb/0");
44 // low level gfx stuff
47 static fbClass *getInstance();
51 int islocked() { return locked; }