WAGE: Simplify border drawing
This commit is contained in:
parent
cb06c712c7
commit
cdb4fc1fbf
2 changed files with 2 additions and 1 deletions
|
@ -284,6 +284,7 @@ void Gui::drawScene() {
|
|||
MacWindow *w = _wm.getWindow(_sceneWindowId);
|
||||
|
||||
w->setDimensions(*_scene->_designBounds);
|
||||
w->setTitle(_scene->_name);
|
||||
_scene->paint(w->getSurface(), 0, 0);
|
||||
w->draw(&_screen);
|
||||
g_system->copyRectToScreen(_screen.getBasePtr(_scene->_designBounds->left, _scene->_designBounds->top),
|
||||
|
|
|
@ -102,7 +102,7 @@ void MacWindow::draw(Graphics::ManagedSurface *g, bool forceRedraw) {
|
|||
drawBorder();
|
||||
|
||||
// Compose
|
||||
_composeSurface.blitFrom(_surface, _surface.getBounds(), Common::Point(0, 0));
|
||||
_composeSurface.blitFrom(_surface);
|
||||
_composeSurface.transBlitFrom(_borderSurface, kColorGreen);
|
||||
|
||||
g->transBlitFrom(_composeSurface, _composeSurface.getBounds(), Common::Point(_dims.left, _dims.top), kColorGreen2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue