From f4f8f9a2775fa1794de6935756f30bf4d99f33e8 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 10 Dec 2007 23:25:32 +0000 Subject: add support for manual blit --- lib/gdi/grc.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'lib/gdi/grc.cpp') 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() ) -- cgit v1.2.3