openbsd-ports/x11/windowmaker/patches/patch-WINGs_wwindow_c

30 lines
883 B
Plaintext

$OpenBSD: patch-WINGs_wwindow_c,v 1.3 2010/05/20 10:58:08 espie Exp $
--- WINGs/wwindow.c.orig Sun Oct 24 04:58:20 2004
+++ WINGs/wwindow.c Thu May 20 12:50:56 2010
@@ -254,14 +254,14 @@ static void
setMiniwindow(WMWindow *win, RImage *image)
{
WMScreen *scr= win->view->screen;
- CARD32 *data;
+ 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(long));
o= 0;
data[o++] = image->width;
@@ -269,7 +269,7 @@ setMiniwindow(WMWindow *win, RImage *image)
for (y= 0; y < image->height; y++) {
for (x= 0; x < image->width; x++) {
- CARD32 pixel;
+ long pixel;
int offs= (x+y*image->width);
if (image->format == RRGBFormat)