pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/wm/windowmaker 64-bit fixes. Based on Xning Lee's pat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e313f34e9f65
branches: trunk
changeset: 486871:e313f34e9f65
user: sekiya <sekiya%pkgsrc.org@localhost>
date: Tue Jan 04 14:29:19 2005 +0000
description:
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:
wm/windowmaker/distinfo | 5 +++--
wm/windowmaker/patches/patch-ag | 34 +++++++++++++++++++++++++++++-----
wm/windowmaker/patches/patch-al | 19 +++++++++++++++++++
3 files changed, 51 insertions(+), 7 deletions(-)
diffs (91 lines):
diff -r acfafebd30d5 -r e313f34e9f65 wm/windowmaker/distinfo
--- a/wm/windowmaker/distinfo Tue Jan 04 14:13:59 2005 +0000
+++ b/wm/windowmaker/distinfo Tue Jan 04 14:29:19 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2004/11/25 13:12:52 adam Exp $
+$NetBSD: distinfo,v 1.23 2005/01/04 14:29:19 sekiya Exp $
SHA1 (WindowMaker-0.91.0.tar.bz2) = 14fb553943b5cbfaaa867d28405b910e73d3b509
Size (WindowMaker-0.91.0.tar.bz2) = 2198266 bytes
@@ -8,8 +8,9 @@
SHA1 (patch-ad) = 183b529289bbcb8dd7590296e546c166aef8da0a
SHA1 (patch-ae) = 70f21b44a45fad4b2bf48af75820a22ed1e4e857
SHA1 (patch-af) = dc749bbbea0c0e8d5b42d7d1be76b60b3af794b2
-SHA1 (patch-ag) = 84326d25c3e3d3305aeb58e8caf7a49565a1bd7c
+SHA1 (patch-ag) = 7a67f76434f61e43faa2dc434f5ee41d94b8ad55
SHA1 (patch-ah) = b391a48f723c62335448007a89c6958a7d922d86
SHA1 (patch-ai) = 03ef51a9dcc6d5b23f325231ea2d71fc0f13706f
SHA1 (patch-aj) = 69fd44e4fb526a0b3d61ff8c6d958da38178dca7
SHA1 (patch-ak) = bef271b75dd9164eaea04635b8c2bf48d50f7168
+SHA1 (patch-al) = a5341dcd7d59ea16bbcc7929cf205c6e5523642f
diff -r acfafebd30d5 -r e313f34e9f65 wm/windowmaker/patches/patch-ag
--- a/wm/windowmaker/patches/patch-ag Tue Jan 04 14:13:59 2005 +0000
+++ b/wm/windowmaker/patches/patch-ag Tue Jan 04 14:29:19 2005 +0000
@@ -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 -r acfafebd30d5 -r e313f34e9f65 wm/windowmaker/patches/patch-al
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/windowmaker/patches/patch-al Tue Jan 04 14:29:19 2005 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index