MADS: Implemented MSurface::mergeFrom method

This commit is contained in:
Paul Gilbert 2014-04-19 19:20:57 -04:00
parent c4669dd2f2
commit 58378a0965
3 changed files with 53 additions and 2 deletions

View file

@ -108,8 +108,7 @@ void UISlots::draw(bool updateFlag, bool delFlag) {
if (slot._flags >= IMG_ERASE) {
// Merge area
error("TODO: Create a sprite merge method");
userInterface._surface.copyTo(&userInterface, dirtyArea._bounds,
userInterface.mergeFrom(&userInterface._surface, dirtyArea._bounds,
Common::Point(dirtyArea._bounds.left, dirtyArea._bounds.top));
} else {
// Copy area