aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/graphics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-11-06 13:19:12 +0000
committerEugene Sandulenko2006-11-06 13:19:12 +0000
commitda3e724a990e1d7482c1654623e01723ba890534 (patch)
tree2ef1e1dd6b5f9971a1a2b7a8c2420211247f0c1f /engines/agi/graphics.cpp
parentc13380e76e35ae45d3550a4ac97e7620537bbc0f (diff)
downloadscummvm-rg350-da3e724a990e1d7482c1654623e01723ba890534.tar.gz
scummvm-rg350-da3e724a990e1d7482c1654623e01723ba890534.tar.bz2
scummvm-rg350-da3e724a990e1d7482c1654623e01723ba890534.zip
Predictive input for AGI engine. To Do:
- Multitap - scummvm.ini-based dictionary path - speedup dictionary loading svn-id: r24635
Diffstat (limited to 'engines/agi/graphics.cpp')
-rw-r--r--engines/agi/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index 3b9c754d97..8499e29ea1 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -282,7 +282,7 @@ void print_character(int x, int y, char c, int fg, int bg) {
* @param a set if the button has focus
* @param p set if the button is pressed
*/
-void draw_button(int x, int y, const char *s, int a, int p) {
+void draw_button(int x, int y, const char *s, int a, int p, int fgcolor, int bgcolor) {
int len = strlen(s);
int x1, y1, x2, y2;
@@ -292,7 +292,7 @@ void draw_button(int x, int y, const char *s, int a, int p) {
y2 = y + CHAR_LINES + 2;
while (*s) {
- put_text_character(0, x + (!!p), y + (!!p), *s++, a ? 15 : 0, a ? 0 : 15);
+ put_text_character(0, x + (!!p), y + (!!p), *s++, a ? fgcolor : bgcolor, a ? bgcolor : fgcolor);
x += CHAR_COLS;
}