Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70796 Details for
Bug 83927
Windowmaker bug with QT/KDE applications on amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0.92 version of the patch
64bit+endian-fixes-0.92.patch (text/plain), 3.82 KB, created by
Max Loparev
on 2005-10-16 10:04:26 UTC
(
hide
)
Description:
0.92 version of the patch
Filename:
MIME Type:
Creator:
Max Loparev
Created:
2005-10-16 10:04:26 UTC
Size:
3.82 KB
patch
obsolete
>--- WindowMaker-0.92.0/src/wmspec.c.orig 2005-05-15 16:41:09.000000000 +0000 >+++ WindowMaker-0.92.0/src/wmspec.c 2005-10-16 15:17:49.979594250 +0000 >@@ -35,6 +35,7 @@ > > #include <X11/Xlib.h> > #include <X11/Xatom.h> >+#include <X11/Xarch.h> > #include <string.h> > > #include "WindowMaker.h" >@@ -322,15 +323,15 @@ > void > wNETWMUpdateDesktop(WScreen *scr) > { >- CARD32 *views, sizes[2]; >+ long *views, sizes[2]; > int count, i; > > if (scr->workspace_count==0) > return; > > count = scr->workspace_count * 2; >- views = wmalloc(sizeof(CARD32) * count); >- /*memset(views, 0, sizeof(CARD32) * count);*/ >+ views = wmalloc(sizeof(long) * count); >+ /*memset(views, 0, sizeof(long) * count);*/ > > #ifdef VIRTUAL_DESKTOP > sizes[0] = scr->workspaces[scr->current_workspace]->width; >@@ -370,7 +371,7 @@ > 0, 1, &count); > if (prop) > { >- int desktop= *(CARD32*)prop; >+ int desktop= *(long*)prop; > XFree(prop); > return desktop; > } >@@ -389,12 +390,12 @@ > * > * The logic can also be changed to accept bigger images and scale them down. > */ >-static CARD32* >-findBestIcon(CARD32 *data, unsigned long items) >+static unsigned long* >+findBestIcon(unsigned long *data, unsigned long items) > { > int size, wanted, d, distance; > unsigned long i; >- CARD32 *icon; >+ unsigned long *icon; > > /* better use only 75% of icon_size. For 64x64 this means 48x48 > * This leaves room around the icon for the miniwindow title and >@@ -418,12 +419,12 @@ > > > static RImage* >-makeRImageFromARGBData(CARD32 *data) >+makeRImageFromARGBData(unsigned long *data) > { > int size, width, height, i; > RImage *image; > unsigned char *imgdata; >- CARD32 pixel; >+ unsigned long pixel; > > width = data[0]; > height = data[1]; >@@ -436,10 +437,18 @@ > > for (imgdata=image->data, i=2; i<size+2; i++, imgdata+=4) { > pixel = data[i]; >+#if BYTE_ORDER == BIG_ENDIAN >+ imgdata[2] = (pixel >> 24) & 0xff; /* A */ >+ imgdata[1] = (pixel >> 16) & 0xff; /* R */ >+ imgdata[0] = (pixel >> 8) & 0xff; /* G */ >+ imgdata[3] = (pixel >> 0) & 0xff; /* B */ >+#else /* Little endian */ > imgdata[3] = (pixel >> 24) & 0xff; /* A */ > imgdata[0] = (pixel >> 16) & 0xff; /* R */ > imgdata[1] = (pixel >> 8) & 0xff; /* G */ > imgdata[2] = (pixel >> 0) & 0xff; /* B */ >+#endif /* endianness */ >+ > } > > return image; >@@ -449,7 +458,7 @@ > static void > updateIconImage(WScreen *scr, WWindow *wwin) > { >- CARD32 *property, *data; >+ unsigned long *property, *data; > unsigned long items, rest; > Atom type; > int format; >@@ -487,7 +496,7 @@ > static void > updateShowDesktop(WScreen * scr, Bool show) > { >- CARD32 foo; >+ long foo; > > foo = (show == True); > XChangeProperty(dpy, scr->root_win, net_showing_desktop, XA_CARDINAL, 32, >@@ -660,7 +669,7 @@ > void > wNETWMUpdateWorkarea(WScreen *scr, WArea usableArea) > { >- CARD32 *area; >+ long *area; > int count, i; > > /* XXX: not Xinerama compatible, >@@ -670,7 +679,7 @@ > return; > > count = scr->workspace_count * 4; >- area = wmalloc(sizeof(CARD32) * count); >+ area = wmalloc(sizeof(long) * count); > for (i=0; i<scr->workspace_count; i++) { > area[4*i + 0] = usableArea.x1; > area[4*i + 1] = usableArea.y1; >@@ -793,7 +802,7 @@ > static void > updateWorkspaceCount(WScreen *scr) /* changeable */ > { >- CARD32 count; >+ long count; > > count = scr->workspace_count; > >@@ -805,7 +814,7 @@ > static void > updateCurrentWorkspace(WScreen *scr) /* changeable */ > { >- CARD32 count; >+ long count; > > count = scr->current_workspace; > >@@ -852,7 +861,7 @@ > static void > updateWorkspaceHint(WWindow *wwin, Bool fake, Bool del) > { >- CARD32 l; >+ long l; > > if (del) { > XDeleteProperty(dpy, wwin->client_win, net_wm_desktop);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 83927
:
52532
| 70796