diff options
author | Max Horn | 2004-11-26 00:24:25 +0000 |
---|---|---|
committer | Max Horn | 2004-11-26 00:24:25 +0000 |
commit | ca7f3814eb88cbc8e3273ac823f7c914d4caab3f (patch) | |
tree | df7102ca2b66cfbedc803accf619516aa47ae424 | |
parent | 6df3e8dc6fd41bce4a5072bc753dd28c032aaff1 (diff) | |
download | scummvm-rg350-ca7f3814eb88cbc8e3273ac823f7c914d4caab3f.tar.gz scummvm-rg350-ca7f3814eb88cbc8e3273ac823f7c914d4caab3f.tar.bz2 scummvm-rg350-ca7f3814eb88cbc8e3273ac823f7c914d4caab3f.zip |
oops
svn-id: r15891
-rw-r--r-- | saga/gfx.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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); |