From 6b8d8a65d04c1bf345bac76f29375f5bf5ddefde Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 31 Jul 2013 13:15:26 +0300 Subject: [PATCH] Gfx: Suppress int to float conversion warning --- Common/Gfx/CanvasD2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Gfx/CanvasD2D.cpp b/Common/Gfx/CanvasD2D.cpp index 70c92d6c..6b22ed1d 100644 --- a/Common/Gfx/CanvasD2D.cpp +++ b/Common/Gfx/CanvasD2D.cpp @@ -32,7 +32,7 @@ D2D1_COLOR_F ToColorF(const Gdiplus::Color& color) D2D1_RECT_F ToRectF(const Gdiplus::Rect& rect) { - return D2D1::RectF(rect.X, rect.Y, rect.X + rect.Width, rect.Y + rect.Height); + return D2D1::RectF((FLOAT)rect.X, (FLOAT)rect.Y, (FLOAT)(rect.X + rect.Width), (FLOAT)(rect.Y + rect.Height)); } D2D1_RECT_F ToRectF(const Gdiplus::RectF& rect)