#include "gpixmap.h"
#include "grc.h"
-class gFBDC: public gPixmapDC
+class gFBDC: public gDC
{
fbClass *fb;
static gFBDC *instance;
int brightness, gamma, alpha;
void calcRamp();
void setPalette();
+ gSurface surface, surface_back;
+ int m_enable_double_buffering;
public:
void reloadSettings();
void setAlpha(int alpha);
int getBrightness() { return brightness; }
int getGamma() { return gamma; }
+ int haveDoubleBuffering() { return m_enable_double_buffering; }
+
void saveSettings();
gFBDC();
- ~gFBDC();
- static gFBDC *getInstance();
+ virtual ~gFBDC();
+ static int getInstance(ePtr<gFBDC> &ptr) { if (!instance) return -1; ptr = instance; return 0; }
+ int islocked() { return fb->islocked(); }
};