From 9f50ca8c2cd65b0e9090a7031c5505d14f134176 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sun, 21 Aug 2016 13:44:33 +0200 Subject: overlay/lib.cpp: cast to long when creating RECT. --- overlay/lib.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'overlay') diff --git a/overlay/lib.cpp b/overlay/lib.cpp index 43613bc98..f1d859846 100644 --- a/overlay/lib.cpp +++ b/overlay/lib.cpp @@ -276,7 +276,12 @@ void Pipe::checkMessage(unsigned int width, unsigned int height) { } break; case OVERLAY_MSGTYPE_BLIT: { - RECT r = {omMsg.omb.x, omMsg.omb.y, omMsg.omb.x + omMsg.omb.w, omMsg.omb.y + omMsg.omb.h}; + RECT r = { + static_cast(omMsg.omb.x), + static_cast(omMsg.omb.y), + static_cast(omMsg.omb.x + omMsg.omb.w), + static_cast(omMsg.omb.y + omMsg.omb.h) + }; std::vector::iterator i = blits.begin(); while (i != blits.end()) { -- cgit v1.2.3