X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d6f6602d7cea3a7899990fe79216af7d98d05917..ce7f5539437fff074b1c3388d575660f24011f66:/lib/gdi/gfbdc.h diff --git a/lib/gdi/gfbdc.h b/lib/gdi/gfbdc.h index 0b0372d3..16260fb2 100644 --- a/lib/gdi/gfbdc.h +++ b/lib/gdi/gfbdc.h @@ -14,7 +14,8 @@ class gFBDC: public gDC int brightness, gamma, alpha; void calcRamp(); void setPalette(); - gSurface surface; + gSurface surface, surface_back; + int m_enable_double_buffering; public: void reloadSettings(); void setAlpha(int alpha); @@ -25,11 +26,13 @@ public: 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 &ptr) { if (!instance) return -1; ptr = instance; return 0; } int islocked() { return fb->islocked(); } };