// 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 ); }
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(); }