ET++: Stepping through the redraw of a changed ImageItem

This method calls VObject::DrawAll() to redraw the VObject (the ImageItem, in this case).


void WindowPort::UpdateRect(const Rectangle &r)
{
	if (win) {
		Port *oldport= GrGetPort();
		GrSetPort(this);
		InitClip();
		Clip(Inter(win->contentRect, r));
		SetPenNormal();
		SetInk(ePatBlack);
		GiveHint(eHintBatch, sizeof(Rectangle), (void*) &r);
		win->DrawAll(r, FALSE);
		FlushMyText();
		GrSetPort(oldport);
	}
}

Back to the top of the invalidate/redraw description

Back to the top of the ET++ pages