$NetBSD: patch-ab,v 1.5 2011/02/25 17:02:53 wiz Exp $ --- mgp.h.orig 2008-01-18 17:43:20.000000000 +0000 +++ mgp.h @@ -64,7 +64,9 @@ #ifdef USE_XFT2 #include #include FT_FREETYPE_H -#include +#include FT_CONFIG_CONFIG_H +#include +#include #include #ifdef HAVE_ICONV #include @@ -308,6 +310,12 @@ struct ctrl_pcache { struct ctrl { u_char ct_op; u_char ct_flag; + enum { + CTRL_DOUBLE, CTRL_INT, CTRL_INT2, CTRL_INT3, + CTRL_LONG, CTRL_CHAR, CTRL_CHAR2, CTRL_IMAGE, + CTRL_GRAD, CTRL_BAR, CTRL_ARGS, CTRL_ICON, + CTRL_AREA, CTRL_PCACHE, CTRL_VOID + } ct_type; u_int ct_page; struct ctrl *ct_next; union { @@ -507,7 +515,7 @@ struct render_object { float xzoom, yzoom; #ifdef USE_IMLIB int zoomonclk; - ImlibImage *imimage; + Imlib_Image *imimage; #endif } image; struct { @@ -745,6 +753,11 @@ extern int get_regid __P((char *)); extern void draw_line_itemsize __P((struct render_state *, int, int, int)); extern void draw_line_start __P((struct render_state *)); extern void draw_line_end __P ((struct render_state *)); +#ifdef USE_IMLIB +int search_zimage(int, int, int); +void zoomin_zimage(int); +void zoomout_zimage(int); +#endif #ifdef USE_M17N extern int obj_new_mtext __P((struct render_state *, int, int, @@ -843,6 +856,12 @@ extern void usleep __P((u_int)); #define COLOR_BUGFIX #endif +#ifdef MNG +/*mng.c*/ +void mngload(char *, int, int, int, int); +void mngpreload(struct render_state *, char *, int *, int *); +#endif + #ifdef USE_M17N /*m17n.c*/ extern void M17N_init __P((void));