mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Gfx: Suppress int to float conversion warning
This commit is contained in:
parent
3c8c8a1f5e
commit
6b8d8a65d0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user