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:
authorMikkel Krautz <mikkel@krautz.dk>2016-08-21 14:44:33 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-08-21 19:43:14 +0300
commit9f50ca8c2cd65b0e9090a7031c5505d14f134176 (patch)
tree111127caea78621a1caae92164c28254264a1a52 /overlay
parent1603d085510331cfe2f0f5dbe8ac2573597d2ef3 (diff)
overlay/lib.cpp: cast to long when creating RECT.
Diffstat (limited to 'overlay')
-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()) {