diff options
-rw-r--r-- | graphics/primitives.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp index c9fca83f7b..ac1c58b1d8 100644 --- a/graphics/primitives.cpp +++ b/graphics/primitives.cpp @@ -258,7 +258,7 @@ void drawRoundRect(Common::Rect &rect, int arc, int color, bool filled, void (*p int dy = rect.height() - arc * 2; int r = arc; int stop = 0; - int lastx, lasty; + int lastx = 0, lasty = 0; if (dy < 0) stop = -dy / 2; @@ -303,7 +303,7 @@ void drawRoundRect(Common::Rect &rect, int arc, int color, bool filled, void (*p int dx = rect.width() - arc * 2; int r = arc; int stop = 0; - int lastx, lasty; + int lastx = 0, lasty = 0; if (dx < 0) stop = -dx / 2; |