diff options
Diffstat (limited to 'scumm/smush/scumm_renderer.cpp')
-rw-r--r-- | scumm/smush/scumm_renderer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/smush/scumm_renderer.cpp b/scumm/smush/scumm_renderer.cpp index bfce102ae5..3e357091c2 100644 --- a/scumm/smush/scumm_renderer.cpp +++ b/scumm/smush/scumm_renderer.cpp @@ -20,6 +20,7 @@ */ #include <stdafx.h> +#include "common/util.h" #include "scumm_renderer.h" #include "channel.h" @@ -246,8 +247,8 @@ bool ScummRenderer::setPalette(const Palette & pal) { } void ScummRenderer::save(int frame) { - int width = min(getWidth(), _scumm->_realWidth); - int height = min(getHeight(), _scumm->_realHeight); + int width = MIN(getWidth(), _scumm->_realWidth); + int height = MIN(getHeight(), _scumm->_realHeight); _scumm->_system->copy_rect((const byte *)data(), getWidth(), 0, 0, width, height); _scumm->_system->update_screen(); |