ACCESS: Changed engine to use Graphics::ManagedSurface

This commit is contained in:
Paul Gilbert 2016-03-10 21:51:06 -05:00
parent 433a2daa6a
commit 9c7569b74b
12 changed files with 157 additions and 358 deletions

View file

@ -115,7 +115,7 @@ void EventsManager::setCursor(CursorType cursorId) {
}
}
void EventsManager::setCursorData(Graphics::Surface *src, const Common::Rect &r) {
void EventsManager::setCursorData(Graphics::ManagedSurface *src, const Common::Rect &r) {
_invCursor.create(r.width(), r.height(), Graphics::PixelFormat::createFormatCLUT8());
_invCursor.copyRectToSurface(*src, 0, 0, r);
}
@ -281,8 +281,7 @@ void EventsManager::nextFrame() {
// Give time to the debugger
_vm->_debugger->onFrame();
// TODO: Refactor for dirty rects
_vm->_screen->updateScreen();
_vm->_screen->update();
}
void EventsManager::nextTimer() {