From efe96a535b0e74f47920e72958ab4ec5449fc35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Wed, 24 May 2006 09:07:46 +0000 Subject: [PATCH] formating a bit svn-id: r22603 --- engines/agi/graphics.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index c568ee7a220..3a73b48b384 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;