move dvb-t 5V antenna switching to better place
[enigma2.git] / lib / gdi / grc.h
index a59749720b15cdff322dbe90573d542f52c62cbe..685b960cc1a605ba5a8ffca8653bf23e68e7a6e9 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __grc_h
 #define __grc_h
 
+// #define SYNC_PAINT
 /*
        gPainter ist die high-level version. die highlevel daten werden zu low level opcodes ueber
        die gRC-queue geschickt und landen beim gDC der hardwarespezifisch ist, meist aber auf einen
@@ -8,8 +9,8 @@
 */
 
 // for debugging use:
-//#define SYNC_PAINT
-#undef SYNC_PAINT
+#define SYNC_PAINT
+//#undef SYNC_PAINT
 
 #include <pthread.h>
 #include <stack>
@@ -77,7 +78,7 @@ struct gOpcode
                struct prenderText
                {
                        eRect area;
-                       std::string text;
+                       char *text;
                        int flags;
                } *renderText;
 
@@ -185,7 +186,7 @@ class gPainter
 public:
        gPainter(gDC *dc, eRect rect=eRect());
        virtual ~gPainter();
-
+       
        void setBackgroundColor(const gColor &color);
        void setForegroundColor(const gColor &color);
 
@@ -252,6 +253,7 @@ protected:
        ePtr<gPixmap> m_pixmap;
 
        gColor m_foreground_color, m_background_color;
+       gRGB m_foreground_color_rgb, m_background_color_rgb;
        ePtr<gFont> m_current_font;
        ePoint m_current_offset;