git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
graphmultiepg: also show plugin in extensions menu
[enigma2.git]
/
lib
/
gdi
/
fb.h
diff --git
a/lib/gdi/fb.h
b/lib/gdi/fb.h
index d0ad6fed0bc5e970b847c843e46324b02d843b70..fa4a4829218c31270285539b8aea64cf2745cab9 100644
(file)
--- a/
lib/gdi/fb.h
+++ b/
lib/gdi/fb.h
@@
-1,8
+1,8
@@
#ifndef __FB_H
#define __FB_H
#ifndef __FB_H
#define __FB_H
-#include <linux/fb.h>
#include <lib/base/eerror.h>
#include <lib/base/eerror.h>
+#include <linux/fb.h>
class fbClass
{
class fbClass
{
@@
-13,31
+13,42
@@
class fbClass
fb_cmap cmap;
__u16 red[256], green[256], blue[256], trans[256];
static fbClass *instance;
fb_cmap cmap;
__u16 red[256], green[256], blue[256], trans[256];
static fbClass *instance;
-
int locked;
int locked;
+
+ int m_manual_blit;
+ int m_number_of_pages;
+#ifdef SWIG
+ fbClass(const char *fb="/dev/fb/0");
+ ~fbClass();
+public:
+#else
public:
unsigned char *lfb;
public:
unsigned char *lfb;
+ void enableManualBlit();
+ void disableManualBlit();
int showConsole(int state);
int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
int Available() { return available; }
int showConsole(int state);
int SetMode(unsigned int xRes, unsigned int yRes, unsigned int bpp);
int Available() { return available; }
+
+ int getNumPages() { return m_number_of_pages; }
+
+ int setOffset(int off);
+ int waitVSync();
+ void blit();
unsigned int Stride() { return stride; }
fb_cmap *CMAP() { return &cmap; }
fbClass(const char *fb="/dev/fb/0");
~fbClass();
unsigned int Stride() { return stride; }
fb_cmap *CMAP() { return &cmap; }
fbClass(const char *fb="/dev/fb/0");
~fbClass();
- static fbClass *getInstance();
-
- // low level gfx stuff
+ // low level gfx stuff
int PutCMAP();
int PutCMAP();
+#endif
+ static fbClass *getInstance();
- // gfx stuff (colors are 8bit!)
- void Box(int x, int y, int width, int height, int color, int backcolor=0);
- void NBox(int x, int y, int width, int height, int color);
- void VLine(int x, int y, int sy, int color);
-
int lock();
void unlock();
int lock();
void unlock();
+ int islocked() { return locked; }
};
#endif
};
#endif