patch by Pieter Grimmerink: use ext3 largefile option only for disks > 4G
[enigma2.git] / lib / gdi / gfbdc.h
index dd03032ef78d9f5be0cc568654f3298a2bbcb043..23051c4f7207fc351142214c937a86147d06f410 100644 (file)
@@ -5,8 +5,12 @@
 #include "gpixmap.h"
 #include "grc.h"
 
+class gFBDC;
+
+SWIG_IGNORE(gFBDC);
 class gFBDC: public gDC
 {
+#ifndef SWIG
        fbClass *fb;
        static gFBDC *instance;
        void exec(gOpcode *opcode);
@@ -14,24 +18,42 @@ class gFBDC: public gDC
        int brightness, gamma, alpha;
        void calcRamp();
        void setPalette();
-       gSurface surface;
+       gSurface surface, surface_back;
+       int m_enable_double_buffering;
+       int m_xres, m_yres;
+#else
+       gFBDC();
+       virtual ~gFBDC();
+#endif
 public:
+       void setResolution(int xres, int yres);
+#ifndef SWIG
        void reloadSettings();
        void setAlpha(int alpha);
        void setBrightness(int brightness);
        void setGamma(int gamma);
-       
+
        int getAlpha() { return alpha; }
        int getBrightness() { return brightness; }
        int getGamma() { return gamma; }
-       
+
+       int haveDoubleBuffering() { return m_enable_double_buffering; }
+
        void saveSettings();
-       
+
        gFBDC();
        virtual ~gFBDC();
        static int getInstance(ePtr<gFBDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
        int islocked() { return fb->islocked(); }
+#endif
 };
-
+SWIG_TEMPLATE_TYPEDEF(ePtr<gFBDC>, gFBDC);
+SWIG_EXTEND(ePtr<gFBDC>,
+       static ePtr<gFBDC> getInstance()
+       {
+               extern ePtr<gFBDC> NewgFBDCPtr(void);
+               return NewgFBDCPtr();
+       }
+);
 
 #endif