From ca7f3814eb88cbc8e3273ac823f7c914d4caab3f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 26 Nov 2004 00:24:25 +0000 Subject: oops svn-id: r15891 --- saga/gfx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'saga') diff --git a/saga/gfx.cpp b/saga/gfx.cpp index 0c190b5c70..1f1edc7027 100644 --- a/saga/gfx.cpp +++ b/saga/gfx.cpp @@ -379,12 +379,12 @@ int drawFrame(SURFACE *ds, const Point *p1, const Point *p2, int color) { int min_y; int max_y; - Point n_p1; /* 1 .. 2 */ - Point n_p2; /* . . */ - Point n_p3; /* . . */ - Point n_p4; /* 4 .. 3 */ - assert((ds != NULL) && (p1 != NULL) && (p2 != NULL)); + + min_x = MIN(p1->x, p2->x); + max_x = MAX(p1->x, p2->x); + min_y = MIN(p1->y, p2->y); + max_y = MAX(p1->y, p2->y); ds->frameRect(Common::Rect(min_x, min_y, max_x+1, max_y+1), color); -- cgit v1.2.3