diff options
author | Max Horn | 2002-12-25 21:04:47 +0000 |
---|---|---|
committer | Max Horn | 2002-12-25 21:04:47 +0000 |
commit | fca9ec09e7709ff4400d2a9a7fd76f4f21781006 (patch) | |
tree | 2c9dd18841983469c4780c75d90762f8a167c048 /scumm/verbs.cpp | |
parent | f1808d20ac90f4212fd14aeaf544a8aaac6a3fbc (diff) | |
download | scummvm-rg350-fca9ec09e7709ff4400d2a9a7fd76f4f21781006.tar.gz scummvm-rg350-fca9ec09e7709ff4400d2a9a7fd76f4f21781006.tar.bz2 scummvm-rg350-fca9ec09e7709ff4400d2a9a7fd76f4f21781006.zip |
moved CharsetRendere into its own header/source file; changed Scumm::_charset into a pointer, to make it possible to use different implementations of it
svn-id: r6147
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r-- | scumm/verbs.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index e72210df53..f377df8a7f 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -21,9 +21,10 @@ */ #include "stdafx.h" -#include "scumm.h" +#include "charset.h" #include "object.h" #include "resource.h" +#include "scumm.h" #include "verbs.h" void Scumm::redrawVerbs() @@ -156,18 +157,18 @@ void Scumm::drawVerb(int verb, int mode) return; assert(_messagePtr); - tmp = _charset._center; - _charset._center = 0; + tmp = _charset->_center; + _charset->_center = 0; drawString(4); - _charset._center = tmp; - - vs->right = _charset._strRight; - vs->bottom = _charset._strBottom; - vs->oldleft = _charset._strLeft; - vs->oldright = _charset._strRight; - vs->oldtop = _charset._strTop; - vs->oldbottom = _charset._strBottom; - _charset._strLeft = _charset._strRight; + _charset->_center = tmp; + + vs->right = _charset->_strRight; + vs->bottom = _charset->_strBottom; + vs->oldleft = _charset->_strLeft; + vs->oldright = _charset->_strRight; + vs->oldtop = _charset->_strTop; + vs->oldbottom = _charset->_strBottom; + _charset->_strLeft = _charset->_strRight; } else { restoreVerbBG(verb); } |