- o.dc=&dc;
- o.opcode=gOpcode::fill;
- o.parm.fill=new gOpcode::para::pfill(cliparea.top(), backgroundColor);
- rc.submit(o);
+ o.opcode=gOpcode::clear;
+ o.dc = m_dc.grabRef();
+ o.parm.fill = new gOpcode::para::pfillRect;
+ o.parm.fill->area = eRect();
+ m_rc->submit(o);
+}
+
+void gPainter::blit(gPixmap *pixmap, ePoint pos, const eRect &clip, int flags)
+{
+ gOpcode o;
+
+ o.opcode=gOpcode::blit;
+ o.dc = m_dc.grabRef();
+ pixmap->AddRef();
+ o.parm.blit = new gOpcode::para::pblit;
+ o.parm.blit->pixmap = pixmap;
+ o.parm.blit->position = pos;
+ o.parm.blit->clip = clip;
+ o.flags=flags;
+ m_rc->submit(o);