Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/dvi/mdvi-lib/mdvi.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-12-20 10:12:52 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-12-20 10:12:52 (GMT)
commitd24b16f917ca749e9ffebbec8eca0ee791e1b67a (patch)
tree73e060f65da7cdc5fb5dd7491d3b8e526e384792 /backend/dvi/mdvi-lib/mdvi.h
parent945efc9392d4c4b5d6a211ed4ccac376bf8c3066 (diff)
Add ps specials support in dvi backend when libspectre is present. Fixes
2007-12-20 Carlos Garcia Campos <carlosgc@gnome.org> * backend/dvi/Makefile.am: * backend/dvi/cairo-device.c: (dvi_cairo_draw_ps), (mdvi_cairo_device_init): * backend/dvi/mdvi-lib/common.h: * backend/dvi/mdvi-lib/mdvi.h: * backend/dvi/mdvi-lib/sp-epsf.c: (epsf_special): * backend/dvi/mdvi-lib/util.c: (mdvi_strrstr), (mdvi_build_path_from_cwd): Add ps specials support in dvi backend when libspectre is present. Fixes bug #386005. svn path=/trunk/; revision=2775
Diffstat (limited to 'backend/dvi/mdvi-lib/mdvi.h')
-rw-r--r--backend/dvi/mdvi-lib/mdvi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/dvi/mdvi-lib/mdvi.h b/backend/dvi/mdvi-lib/mdvi.h
index 961689a..78244a4 100644
--- a/backend/dvi/mdvi-lib/mdvi.h
+++ b/backend/dvi/mdvi-lib/mdvi.h
@@ -102,6 +102,10 @@ typedef void (*DviPutPixel) __PROTO((void *image, int x, int y, Ulong color));
typedef void (*DviDevDestroy) __PROTO((void *data));
typedef void (*DviRefresh) __PROTO((DviContext *dvi, void *device_data));
typedef void (*DviSetColor) __PROTO((void *device_data, Ulong, Ulong));
+typedef void (*DviPSDraw) __PROTO((DviContext *context,
+ const char *filename,
+ int x, int y,
+ Uint width, Uint height));
struct _DviDevice {
DviGlyphDraw draw_glyph;
@@ -113,6 +117,7 @@ struct _DviDevice {
DviDevDestroy dev_destroy;
DviRefresh refresh;
DviSetColor set_color;
+ DviPSDraw draw_ps;
void * device_data;
};