Fixed button rendering

svn-id: r24814
This commit is contained in:
Stuart George 2006-12-07 01:00:26 +00:00
parent 6eb8b98adc
commit 6fd07f64d4
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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();