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

30 lines
880 B
Plaintext

$OpenBSD: patch-WINGs_wwindow_c,v 1.2 2005/12/27 23:12:24 naddy Exp $
--- WINGs/wwindow.c.orig Sun Oct 24 04:58:20 2004
+++ WINGs/wwindow.c Tue Dec 27 22:18:30 2005
@@ -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 *ima
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)