double size of renderbuffer
[enigma2.git] / lib / gdi / grc.cpp
index ef75aacea6e33f0ac42ae4cd293bf57cda0356da..736630a87b912fd85aa043fb36bc6e8748d93e02 100644 (file)
@@ -63,6 +63,7 @@ void gRC::submit(const gOpcode &o)
                if ( tmp == rp )
                {
 #ifndef SYNC_PAINT
+                       pthread_cond_signal(&cond);  // wakeup gdi thread
                        pthread_mutex_unlock(&mutex);
 #else
                        thread();
@@ -115,7 +116,11 @@ void *gRC::thread()
                        else if (o.opcode==gOpcode::notify)
                                need_notify = 1;
                        else
+                       {
                                o.dc->exec(&o);
+                               // o.dc is a gDC* filled with grabref... so we must release it here
+                               o.dc->Release();
+                       }
                }
                else
                {