aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorStuart George2006-12-07 01:00:26 +0000
committerStuart George2006-12-07 01:00:26 +0000
commit6fd07f64d4ca02905e68d2772b64e812ed6e2bd3 (patch)
treea70db1cc65951d363359d5a8d9ea535568a59d10 /engines/agi
parent6eb8b98adc18ba97096e37be23237c235370ecc6 (diff)
downloadscummvm-rg350-6fd07f64d4ca02905e68d2772b64e812ed6e2bd3.tar.gz
scummvm-rg350-6fd07f64d4ca02905e68d2772b64e812ed6e2bd3.tar.bz2
scummvm-rg350-6fd07f64d4ca02905e68d2772b64e812ed6e2bd3.zip
Fixed button rendering
svn-id: r24814
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/graphics.cpp2
-rw-r--r--engines/agi/text.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index 221ae40544..b55806bba4 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -285,7 +285,7 @@ void GfxMgr::drawButton(int x, int y, const char *s, int a, int p, int fgcolor,
y2 = y + CHAR_LINES + 2;
while (*s) {
- putTextCharacter(0, x + (!!p), y + (!!p), *s++, a ? fgcolor : bgcolor, a ? bgcolor : fgcolor);
+ putTextCharacter(0, x + (!!p), y + (!!p), *s++, a ? bgcolor : fgcolor, a ? fgcolor : bgcolor);
x += CHAR_COLS;
}
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 10b6d2692d..b35217b7ae 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -209,7 +209,7 @@ void AgiEngine::print_text_console(const char *msg, int x, int y, int len, int f
}
/**
- * Wrap text line to the specified width.
+ * Wrap text line to the specified width.
* @param str String to wrap.
* @param len Length of line.
*/
@@ -352,7 +352,7 @@ int AgiEngine::selection_box(const char *m, const char **b) {
debugC(4, kDebugLevelText, "waiting...");
for (;;) {
for (i = 0; b[i]; i++)
- _gfx->drawButton(bx[i], by[i], b[i], i == active, 0);
+ _gfx->drawButton(bx[i], by[i], b[i], i == active, 0, MSG_BOX_TEXT, MSG_BOX_COLOUR);
_gfx->pollTimer(); /* msdos driver -> does nothing */
key = do_poll_keyboard();