Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/lib.cpp')
-rw-r--r--overlay/lib.cpp7
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()) {