diff options
author | Paul Gilbert | 2012-05-05 23:21:38 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-05 23:21:38 +1000 |
commit | f7fd9e3d23260e5bab2750b37ef3b154b12ba232 (patch) | |
tree | ae93af37c1bdad44b9c2248a2bfa57d898c8c634 | |
parent | 162cc47c71767b264f157e3ebf9d61eea1f6bd97 (diff) | |
download | scummvm-rg350-f7fd9e3d23260e5bab2750b37ef3b154b12ba232.tar.gz scummvm-rg350-f7fd9e3d23260e5bab2750b37ef3b154b12ba232.tar.bz2 scummvm-rg350-f7fd9e3d23260e5bab2750b37ef3b154b12ba232.zip |
TONY: Fix display of the initial loading screen
-rw-r--r-- | engines/tony/window.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/tony/window.cpp b/engines/tony/window.cpp index d5c9925111..36278a4f05 100644 --- a/engines/tony/window.cpp +++ b/engines/tony/window.cpp @@ -117,25 +117,21 @@ void RMWindow::WipeEffect(Common::Rect &rcBoundEllipse) { g_system->fillScreen(0); } else { // Clear the designated area a line at a time - byte line[RM_SX]; + uint16 line[RM_SX]; Common::fill(line, line + RM_SX, 0); // Loop through each line for (int yp = rcBoundEllipse.top; yp < rcBoundEllipse.bottom; ++yp) { - g_system->copyRectToScreen(line, RM_SX, rcBoundEllipse.left, yp, rcBoundEllipse.width(), 1); + g_system->copyRectToScreen((const byte *)&line[0], RM_SX * 2, rcBoundEllipse.left, yp, rcBoundEllipse.width(), 1); } } } void RMWindow::GetNewFrame(byte *lpBuf, Common::Rect *rcBoundEllipse) { - if (rcBoundEllipse == NULL) { - // Full screen update - g_system->copyRectToScreen(lpBuf, RM_SX, 0, 0, RM_SX, RM_SY); - } else { - // Update a screen section - g_system->copyRectToScreen(lpBuf, RM_SX, rcBoundEllipse->left, rcBoundEllipse->top, - rcBoundEllipse->width(), rcBoundEllipse->height()); - } + Common::Rect bounds = (rcBoundEllipse) ? *rcBoundEllipse : Common::Rect(0, 0, RM_SX, RM_SY); + + // Update a screen section + g_system->copyRectToScreen(lpBuf, RM_SX * 2, bounds.left, bounds.top, bounds.width(), bounds.height()); } |