diff options
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/lib.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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<LONG>(omMsg.omb.x), + static_cast<LONG>(omMsg.omb.y), + static_cast<LONG>(omMsg.omb.x + omMsg.omb.w), + static_cast<LONG>(omMsg.omb.y + omMsg.omb.h) + }; std::vector<RECT>::iterator i = blits.begin(); while (i != blits.end()) { |