- default fonts handled in windowstyle
[enigma2.git] / lib / gdi / sdl.h
diff --git a/lib/gdi/sdl.h b/lib/gdi/sdl.h
new file mode 100644 (file)
index 0000000..20ff04f
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef __lib_gdi_sdl_h
+#define __lib_gdi_sdl_h
+
+#include "fb.h"
+#include "gpixmap.h"
+#include "grc.h"
+
+#include <SDL.h>
+
+class gSDLDC: public gDC
+{
+       SDL_Surface *m_screen;
+       static gSDLDC *m_instance;
+       void exec(gOpcode *opcode);
+
+       void setPalette();
+       gSurface m_surface;
+public:
+       
+       gSDLDC();
+       virtual ~gSDLDC();
+       static int getInstance(ePtr<gSDLDC> &ptr) { if (!m_instance) return -1; ptr = m_instance; return 0; }
+       int islocked() { return 0; }
+};
+
+
+#endif