From 6bfdf82a2a4397ad4e0f6cb3d534b58138793a3c Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 9 Dec 2014 14:51:37 +0100 Subject: dvi: Add image_done method to DviDevice to notify that the image is finished This way we can mark the surface dirty when all pixels have been modified. Taken from evince commit: c565f15e696db4b4cf983cdddf1e1ab273d547dc From: Carlos Garcia Campos --- backend/dvi/mdvi-lib/mdvi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/dvi/mdvi-lib/mdvi.h') diff --git a/backend/dvi/mdvi-lib/mdvi.h b/backend/dvi/mdvi-lib/mdvi.h index 327e61fe..37664a76 100644 --- a/backend/dvi/mdvi-lib/mdvi.h +++ b/backend/dvi/mdvi-lib/mdvi.h @@ -99,6 +99,7 @@ typedef void *(*DviCreateImage) __PROTO((void *device_data, Uint bpp)); typedef void (*DviFreeImage) __PROTO((void *image)); typedef void (*DviPutPixel) __PROTO((void *image, int x, int y, Ulong color)); +typedef void (*DviImageDone) __PROTO((void *image)); typedef void (*DviDevDestroy) __PROTO((void *data)); typedef void (*DviRefresh) __PROTO((DviContext *dvi, void *device_data)); typedef void (*DviSetColor) __PROTO((void *device_data, Ulong, Ulong)); @@ -114,6 +115,7 @@ struct _DviDevice { DviCreateImage create_image; DviFreeImage free_image; DviPutPixel put_pixel; + DviImageDone image_done; DviDevDestroy dev_destroy; DviRefresh refresh; DviSetColor set_color; -- cgit v1.2.1