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 showConsole(int state);
20 int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
21 int Available() { return available; }
22 unsigned int Stride() { return stride; }
23 fb_cmap *CMAP() { return &cmap; }
25 fbClass(const char *fb="/dev/fb/0");
28 static fbClass *getInstance();
30 // low level gfx stuff
33 // gfx stuff (colors are 8bit!)
34 void Box(int x, int y, int width, int height, int color, int backcolor=0);
35 void NBox(int x, int y, int width, int height, int color);
36 void VLine(int x, int y, int sy, int color);
40 int islocked() { return locked; }