mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
Fixed button rendering
svn-id: r24814
This commit is contained in:
parent
6eb8b98adc
commit
6fd07f64d4
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user