From b8075603a4cb816aa44fe1b334ecb166ac7d0b5d Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Fri, 28 Jun 2013 12:41:37 +0900 Subject: [PATCH] Fix W32-specific part of last change. --- src/image.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index 52aa743e4c7..8381ce06b93 100644 --- a/src/image.c +++ b/src/image.c @@ -2181,10 +2181,13 @@ image_get_x_image_or_dc (struct frame *f, struct image *img, bool mask_p, release_frame_dc (f, frame_dc); *prev = SelectObject (ximg, !mask_p ? img->pixmap : img->mask); + + return ximg; } -static void image_unget_x_image_or_dc (struct frame *img, bool mask_p, - XImagePtr_or_DC ximg, HGDIOBJ prev) +static void +image_unget_x_image_or_dc (struct image *img, bool mask_p, + XImagePtr_or_DC ximg, HGDIOBJ prev) { SelectObject (ximg, prev); DeleteDC (ximg); -- 2.39.2