X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a5beb7286bff0260e74299fe16cbe1c86de90c76..06578d6778bff8aa2bd6a2387651dd0ba55aa27c:/lib/gdi/grc.cpp diff --git a/lib/gdi/grc.cpp b/lib/gdi/grc.cpp index 1c8e3a65..a46b218c 100644 --- a/lib/gdi/grc.cpp +++ b/lib/gdi/grc.cpp @@ -149,7 +149,7 @@ void *gRC::thread() if (m_spinner_enabled) timeout.tv_nsec += 100*1000*1000; else - timeout.tv_nsec += 500*1000*1000; + timeout.tv_sec += 2; /* yes, this is required. */ if (timeout.tv_nsec > 1000*1000*1000) @@ -207,7 +207,8 @@ void gRC::enableSpinner() o.opcode = m_spinner_enabled ? gOpcode::incrementSpinner : gOpcode::enableSpinner; m_spinner_dc->exec(&o); m_spinner_enabled = 1; - + o.opcode = gOpcode::flush; + m_spinner_dc->exec(&o); } void gRC::disableSpinner() @@ -226,6 +227,8 @@ void gRC::disableSpinner() gOpcode o; o.opcode = gOpcode::disableSpinner; m_spinner_dc->exec(&o); + o.opcode = gOpcode::flush; + m_spinner_dc->exec(&o); } static int gPainter_instances; @@ -520,16 +523,6 @@ void gPainter::clippop() m_rc->submit(o); } -void gPainter::flush() -{ - if ( m_dc->islocked() ) - return; - gOpcode o; - o.opcode = gOpcode::flush; - o.dc = m_dc.grabRef(); - m_rc->submit(o); -} - void gPainter::waitVSync() { if ( m_dc->islocked() )