summaryrefslogtreecommitdiff
path: root/multimedia/kdemultimedia2/patches/patch-an
blob: 0847dee03279fdc00dcde570b45a9ade250d3d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-an,v 1.1.1.1 2004/01/26 15:40:00 jmmv Exp $

--- mpeglib/lib/util/render/x11/x11Surface.cpp.orig	Mon Jan 22 12:14:45 2001
+++ mpeglib/lib/util/render/x11/x11Surface.cpp
@@ -259,8 +259,13 @@
       XSizeHints hints;
       hints.flags = PMaxSize;
       if (HAS_RESIZE(newImage)) {
+#if defined(__NetBSD__)
+	hints.max_width = INT_MAX;
+	hints.max_height = INT_MAX;
+#else
 	hints.max_width = MAXINT;
 	hints.max_height = MAXINT;
+#endif
       } else {
 	hints.max_width = xWindow->width;
 	hints.max_height = xWindow->height;