aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/grc.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-12-10 23:25:32 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-12-10 23:25:32 +0000
commitf4f8f9a2775fa1794de6935756f30bf4d99f33e8 (patch)
tree561979821548c1365549303b79fe72ad9ac4e284 /lib/gdi/grc.cpp
parentf943061914ca950bb4538c31d00c409c0a3fa869 (diff)
downloadenigma2-f4f8f9a2775fa1794de6935756f30bf4d99f33e8.tar.gz
enigma2-f4f8f9a2775fa1794de6935756f30bf4d99f33e8.zip
add support for manual blit
Diffstat (limited to 'lib/gdi/grc.cpp')
-rw-r--r--lib/gdi/grc.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/gdi/grc.cpp b/lib/gdi/grc.cpp
index 76c02d2d..a46b218c 100644
--- a/lib/gdi/grc.cpp
+++ b/lib/gdi/grc.cpp
@@ -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() )