From b9430d7c727d7c1edb865e962b8ea862e6a84ab0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 19 Feb 2016 02:38:30 +0200 Subject: GRAPHICS: Silence some false positive MSVC warnings --- graphics/primitives.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3