aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
authorMax Horn2003-03-28 19:11:16 +0000
committerMax Horn2003-03-28 19:11:16 +0000
commitfb7fdc8e7ee72cb57b1463c57c1c5fa62cff11e3 (patch)
tree0a683417b5762334ecfcf610ae11b6e4bdbb21b2 /scumm/verbs.cpp
parent4819f360da2dda909c48b738ea199bf6af273af7 (diff)
downloadscummvm-rg350-fb7fdc8e7ee72cb57b1463c57c1c5fa62cff11e3.tar.gz
scummvm-rg350-fb7fdc8e7ee72cb57b1463c57c1c5fa62cff11e3.tar.bz2
scummvm-rg350-fb7fdc8e7ee72cb57b1463c57c1c5fa62cff11e3.zip
fixed verb drawing in COMI (and maybe FT, too?)
svn-id: r6874
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r--scumm/verbs.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 2728bc0c7f..8bac4b8533 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -29,10 +29,14 @@
void Scumm::redrawVerbs() {
int i;
- for (i = 0; i < _maxVerbs; i++)
- drawVerb(i, 0);
- verbMouseOver(0);
- _verbRedraw = false;
+ int verb = checkMouseOver(mouse.x, mouse.y);
+ for (i = _maxVerbs-1; i >= 0; i--) {
+ if (i == verb && _verbs[verb].hicolor)
+ drawVerb(i, 1);
+ else
+ drawVerb(i, 0);
+ }
+ _verbMouseOver = verb;
}
void Scumm::checkExecVerbs() {
@@ -127,10 +131,7 @@ void Scumm::drawVerb(int verb, int mode) {
return;
}
- // FIXME: Commenting this out fixes some drawing glitches,
- // but TOTALLY screws up scrolling conversation items.
- //if (_gameId != GID_CMI)
- restoreVerbBG(verb);
+ restoreVerbBG(verb);
_string[4].charset = vs->charset_nr;
_string[4].xpos = vs->x;