diff options
author | Eugene Sandulenko | 2019-01-05 00:06:46 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | 70f61cda0b37bb2ccfb38e1246a6c33897494ac9 (patch) | |
tree | cb4b46bb7754713b632a912e670a08b6f55cb77b /engines/griffon/engine.cpp | |
parent | 2364c6b45723351bb1a7af82a9a8eea219a442da (diff) | |
download | scummvm-rg350-70f61cda0b37bb2ccfb38e1246a6c33897494ac9.tar.gz scummvm-rg350-70f61cda0b37bb2ccfb38e1246a6c33897494ac9.tar.bz2 scummvm-rg350-70f61cda0b37bb2ccfb38e1246a6c33897494ac9.zip |
GRIFFON: Fix collision detection
Diffstat (limited to 'engines/griffon/engine.cpp')
-rw-r--r-- | engines/griffon/engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/griffon/engine.cpp b/engines/griffon/engine.cpp index 5193e8347b..9f4b68dbbb 100644 --- a/engines/griffon/engine.cpp +++ b/engines/griffon/engine.cpp @@ -4653,7 +4653,7 @@ void GriffonEngine::game_loadmap(int mapnum) { SDL_FillRect(clipbg, &rcDest, ccc); } - SDL_BlitSurface(clipbg, NULL, clipbg2, NULL); + clipbg2->copyRectToSurface(clipbg->getPixels(), clipbg->pitch, 0, 0, clipbg->w, clipbg->h); } void GriffonEngine::game_main() { @@ -8496,7 +8496,7 @@ void GriffonEngine::sys_update() { } } - SDL_BlitSurface(clipbg2, NULL, clipbg, NULL); + clipbg->copyRectToSurface(clipbg2->getPixels(), clipbg2->pitch, 0, 0, clipbg2->w, clipbg2->h); Common::Rect rc; |