[Scummvm-cvs-logs] scummvm master -> 2e898739bc8c4d5791923372c16d25633b0dc968

sev- sev at scummvm.org
Sat Apr 23 23:17:16 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2e898739bc WAGE: Clip windows to the screen dimensions


Commit: 2e898739bc8c4d5791923372c16d25633b0dc968
    https://github.com/scummvm/scummvm/commit/2e898739bc8c4d5791923372c16d25633b0dc968
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-04-23T23:14:35+02:00

Commit Message:
WAGE: Clip windows to the screen dimensions

Changed paths:
    engines/wage/macwindowmanager.cpp



diff --git a/engines/wage/macwindowmanager.cpp b/engines/wage/macwindowmanager.cpp
index 8ce39b2..c8454dd 100644
--- a/engines/wage/macwindowmanager.cpp
+++ b/engines/wage/macwindowmanager.cpp
@@ -109,9 +109,10 @@ void MacWindowManager::draw() {
         if (w->draw(_screen, _fullRefresh)) {
             w->setDirty(false);
 
-            g_system->copyRectToScreen(_screen->getBasePtr(w->getDimensions().left - 2, w->getDimensions().top - 2),
-                    _screen->pitch, w->getDimensions().left - 2, w->getDimensions().top - 2,
-                    w->getDimensions().width(), w->getDimensions().height());
+			Common::Rect clip(w->getDimensions().left - 2, w->getDimensions().top - 2, w->getDimensions().right - 2, w->getDimensions().bottom - 2);
+			clip.clip(_screen->getBounds());
+
+            g_system->copyRectToScreen(_screen->getBasePtr(clip.left, clip.top), _screen->pitch, clip.left, clip.top, clip.width(), clip.height());
         }
     }
 






More information about the Scummvm-git-logs mailing list