aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-05-24 09:07:46 +0000
committerPaweł Kołodziejski2006-05-24 09:07:46 +0000
commitefe96a535b0e74f47920e72958ab4ec5449fc35b (patch)
tree1edd73eb113a8fbc72367805e96110d4a83136aa /engines/agi
parent2b258bc6d16905d7c941777c5b042247081c9eca (diff)
downloadscummvm-rg350-efe96a535b0e74f47920e72958ab4ec5449fc35b.tar.gz
scummvm-rg350-efe96a535b0e74f47920e72958ab4ec5449fc35b.tar.bz2
scummvm-rg350-efe96a535b0e74f47920e72958ab4ec5449fc35b.zip
formating a bit
svn-id: r22603
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/graphics.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index c568ee7a22..3a73b48b38 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -348,8 +348,7 @@ void draw_button(int x, int y, 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 ? 15 : 0, a ? 0 : 15);
x += CHAR_COLS;
}
@@ -371,8 +370,7 @@ int test_button(int x, int y, char *s) {
x2 = x + CHAR_COLS * len + 2;
y2 = y + CHAR_LINES + 2;
- if ((int)mouse.x >= x1 && (int)mouse.y >= y1
- && (int)mouse.x <= x2 && (int)mouse.y <= y2)
+ if ((int)mouse.x >= x1 && (int)mouse.y >= y1 && (int)mouse.x <= x2 && (int)mouse.y <= y2)
return true;
return false;