Line 0
Link Here
|
|
|
1 |
--- plugins/video/common/mpi.cxx.orig 2013-02-20 02:18:05 UTC |
2 |
+++ plugins/video/common/mpi.cxx |
3 |
@@ -132,8 +132,8 @@ bool MPIList::getNegotiatedMPI( unsigned |
4 |
// to the desired one or matches it |
5 |
for (i=0; i < MPIs.size(); i++) { |
6 |
// we square the value in order to get absolute distances |
7 |
- distance = ( abs(MPIs[i].width - desiredWidth ) * |
8 |
- abs(MPIs[i].height - desiredHeight) ); |
9 |
+ distance = ( abs((int)(MPIs[i].width - desiredWidth )) * |
10 |
+ abs((int)(MPIs[i].height - desiredHeight)) ); |
11 |
|
12 |
if (distance < minDistance) { |
13 |
minDistance = distance; |