patches/vidalia-02-max.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 8238 3f1502c2b7f9
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8238
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     1
--- vidalia-0.2.15/src/vidalia/network/ZImageView.cpp	Fri Oct  7 21:16:56 2011
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     2
+++ vidalia-0.2.15/src/vidalia/network/ZImageView.cpp	Sat Feb 11 21:27:08 2012
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     3
@@ -173,2 +173,3 @@
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     4
-  float maxw = float(std::max<int>(sRect.width(), iRect.width())) + _padding;
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     5
-  float maxh = float(std::max<int>(sRect.height(), iRect.height())) + _padding;
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     6
+#define max(a, b) (((a) > (b)) ? (a) : (b))
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     7
+  float maxw = float(max(sRect.width(), iRect.width())) + _padding;
3f1502c2b7f9 SFEtor.spec: promote
jurikm
parents:
diff changeset
     8
+  float maxh = float(max(sRect.height(), iRect.height())) + _padding;