Exemplo n.º 1
0
// Paint the current step
void
ProgressBar::paintStep( int startX,
                        int endX )
{
    CRect redrawBounds( m_bounds.left + startX-1, m_bounds.top,
                        m_bounds.left + endX, m_bounds.bottom );
    RedrawWindow( redrawBounds );
}
Exemplo n.º 2
0
void ViewManager::restore(int x1, int y1, int x2, int y2) {
	RectList *rl = new RectList();
	Common::Rect redrawBounds(x1, y1, x2, y2);
	rl->addRect(x1, y1, x2, y2);

	for (ListIterator i = _views.begin(); i != _views.end(); ++i) {
		View *v = *i;

		if (v->isVisible() && v->bounds().intersects(redrawBounds))
			v->onRefresh(rl, _vm->_screen);
	}

	_vm->_screen->update();

}