check if e2 is currently recording before entering the positioner plugin (and prevent...
[enigma2.git] / lib / gdi / sdl.h
1 #ifndef __lib_gdi_sdl_h
2 #define __lib_gdi_sdl_h
3
4 #include "fb.h"
5 #include "gpixmap.h"
6 #include "grc.h"
7
8 #include <SDL.h>
9
10 class gSDLDC: public gDC
11 {
12         SDL_Surface *m_screen;
13         static gSDLDC *m_instance;
14         void exec(gOpcode *opcode);
15
16         void setPalette();
17         gSurface m_surface;
18 public:
19         
20         gSDLDC();
21         virtual ~gSDLDC();
22         static int getInstance(ePtr<gSDLDC> &ptr) { if (!m_instance) return -1; ptr = m_instance; return 0; }
23         int islocked() { return 0; }
24 };
25
26
27 #endif