summaryrefslogtreecommitdiff
path: root/wm/windowmaker/patches
diff options
context:
space:
mode:
authorsekiya <sekiya>2005-01-04 14:29:19 +0000
committersekiya <sekiya>2005-01-04 14:29:19 +0000
commitdc89f34789e66a8e162f5524a24d68f98725372e (patch)
tree4d5b0d8109eca1a52011e65096e5f9bbff1fcd18 /wm/windowmaker/patches
parenteb4bbb6c405432d73ded679621d89a92a062b0e1 (diff)
downloadpkgsrc-dc89f34789e66a8e162f5524a24d68f98725372e.tar.gz
64-bit fixes. Based on Xning Lee's patchset sent to port-amd64@; changed the
unsigned int -> long transformation to unsigned int -> unsigned long, just in case.
Diffstat (limited to 'wm/windowmaker/patches')
-rw-r--r--wm/windowmaker/patches/patch-ag34
-rw-r--r--wm/windowmaker/patches/patch-al19
2 files changed, 48 insertions, 5 deletions
diff --git a/wm/windowmaker/patches/patch-ag b/wm/windowmaker/patches/patch-ag
index f87f232129e..61cd0ba43c1 100644
--- a/wm/windowmaker/patches/patch-ag
+++ b/wm/windowmaker/patches/patch-ag
@@ -1,15 +1,39 @@
-$NetBSD: patch-ag,v 1.3 2004/11/12 21:17:55 kristerw Exp $
+$NetBSD: patch-ag,v 1.4 2005/01/04 14:29:19 sekiya Exp $
---- src/wmspec.c.orig Fri Nov 12 22:06:05 2004
-+++ src/wmspec.c Fri Nov 12 22:08:17 2004
-@@ -392,8 +392,9 @@
+--- src/wmspec.c.orig 2004-10-25 04:36:15.000000000 +0900
++++ src/wmspec.c 2005-01-04 23:18:46.000000000 +0900
+@@ -382,18 +382,19 @@
+ &nitems_return, &bytes_after_return, &prop_return);
+
+ if (rc==Success && prop_return) {
+- unsigned int *data = (unsigned int *)prop_return;
+- unsigned int pos = 0, len = 0;
+- unsigned int best_pos = 0, best_tmp = ~0;
++ unsigned long *data = (unsigned int *)prop_return;
++ unsigned long pos = 0, len = 0;
++ unsigned long best_pos = 0, best_tmp = ~0;
+ extern WPreferences wPreferences;
+- unsigned int pref_size = wPreferences.icon_size;
+- unsigned int pref_sq = pref_size*pref_size;
++ unsigned long pref_size = wPreferences.icon_size;
++ unsigned long pref_sq = pref_size*pref_size;
+ char *src, *dst;
RImage *new_rimage;
do {
-+ unsigned int tmp;
++ unsigned long tmp;
len = data[pos+0]*data[pos+1];
- unsigned int tmp = pref_sq-len;
+ tmp = pref_sq-len;
if (tmp < best_tmp && tmp > 0) {
best_tmp = tmp;
best_pos = pos;
+@@ -405,7 +406,7 @@
+ len = data[best_pos+0] * data[best_pos+1];
+ src = (char*)&data[best_pos+2];
+ dst = new_rimage->data;
+- for (pos=0; pos<len; ++pos, src+=4, dst+=4) {
++ for (pos=0; pos<len; ++pos, src+=sizeof(long), dst+=4) {
+ dst[0] = src[2]; /* R */
+ dst[1] = src[1]; /* G */
+ dst[2] = src[0]; /* B */
diff --git a/wm/windowmaker/patches/patch-al b/wm/windowmaker/patches/patch-al
new file mode 100644
index 00000000000..88deaa386b0
--- /dev/null
+++ b/wm/windowmaker/patches/patch-al
@@ -0,0 +1,19 @@
+--- WINGs/wwindow.c.orig 2004-10-24 11:58:20.000000000 +0900
++++ WINGs/wwindow.c 2005-01-04 23:17:30.000000000 +0900
+@@ -254,14 +254,14 @@
+ setMiniwindow(WMWindow *win, RImage *image)
+ {
+ WMScreen *scr= win->view->screen;
+- CARD32 *data;
++ unsigned long *data;
+ int x, y;
+ int o;
+
+ if (!image)
+ return;
+
+- data = wmalloc((image->width * image->height + 2) * sizeof(CARD32));
++ data = wmalloc((image->width * image->height + 2) * sizeof(unsigned long));
+
+ o= 0;
+ data[o++] = image->width;