fix gPixmap ref, fix usage of gImage
[enigma2.git] / lib / gdi / gfbdc.h
1 #ifndef __gfbdc_h
2 #define __gfbdc_h
3
4 #include "fb.h"
5 #include "gpixmap.h"
6 #include "grc.h"
7
8 class gFBDC: public gPixmapDC
9 {
10         fbClass *fb;
11         static gFBDC *instance;
12         void exec(gOpcode *opcode);
13         unsigned char ramp[256], rampalpha[256]; // RGB ramp 0..255
14         int brightness, gamma, alpha;
15         void calcRamp();
16         void setPalette();
17 public:
18         void reloadSettings();
19         void setAlpha(int alpha);
20         void setBrightness(int brightness);
21         void setGamma(int gamma);
22         
23         int getAlpha() { return alpha; }
24         int getBrightness() { return brightness; }
25         int getGamma() { return gamma; }
26         
27         void saveSettings();
28         
29         gFBDC();
30         ~gFBDC();
31         static gFBDC *getInstance();
32 };
33
34
35 #endif