summaryrefslogtreecommitdiff
path: root/graphics/xart/patches/patch-image.h
blob: 76ad552877a56a58763c9e461610acc1e8225d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-image.h,v 1.1.2.2 2011/12/07 08:30:52 tron Exp $

--- image.h.orig	1998-03-10 07:33:31.000000000 +0000
+++ image.h
@@ -1,6 +1,8 @@
 #ifndef __IMAGE_H__
 #define __IMAGE_H__
 
+#include <X11/Xlib.h>
+
 /* +-------------------------------------------------------------------+ */
 /* | Copyright (C) 1993, David Koblas (koblas@netcom.com)              | */
 /* | Copyright 1995, 1996 Torsten Martinsen (bullestock@dk-online.dk)  | */
@@ -64,7 +66,6 @@ typedef struct {
     unsigned long sourceMask;
 } Image;
 
-#ifdef _XLIB_H_
 /* Used to transfer information to routines in iprocess.c */
 struct imageprocessinfo {
     int oilArea;
@@ -86,8 +87,6 @@ struct imageprocessinfo {
     XColor *background;
 };
 
-#endif
-
 #define ImagePixel(image, x, y)						\
 	(((image)->cmapSize == 0)					\
 	  ? &((image)->data[((y) * (image)->width + (x)) * 3])		\