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/bitmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/dvi/mdvi-lib/bitmap.c') diff --git a/backend/dvi/mdvi-lib/bitmap.c b/backend/dvi/mdvi-lib/bitmap.c index 53f21207..6edec1df 100644 --- a/backend/dvi/mdvi-lib/bitmap.c +++ b/backend/dvi/mdvi-lib/bitmap.c @@ -1028,6 +1028,8 @@ void mdvi_shrink_glyph_grey(DviContext *dvi, DviFont *font, for(x = 0; x < w; x++) dev->put_pixel(image, x, y, pixels[0]); } + + dev->image_done(image); DEBUG((DBG_BITMAPS, "shrink_glyph_grey: (%dw,%dh,%dx,%dy) -> (%dw,%dh,%dx,%dy)\n", glyph->w, glyph->h, glyph->x, glyph->y, dest->w, dest->h, dest->x, dest->y)); -- cgit v1.2.1