gdi32: Restore the previously selected font in MF_PlayMetaFile().
Nicolas Le Cam
niko.lecam at gmail.com
Sun May 1 18:13:26 CDT 2011
Fixes a "variable set but not used" warning.
--
Nicolas Le Cam
-------------- next part --------------
From 1c9483b4edd700d06fc32afebd0162cab1da40d6 Mon Sep 17 00:00:00 2001
From: Nicolas Le Cam <niko.lecam at gmail.com>
Date: Fri, 29 Apr 2011 23:57:09 +0200
Subject: gdi32: Restore the previously selected font in MF_PlayMetaFile().
---
dlls/gdi32/metafile.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/metafile.c b/dlls/gdi32/metafile.c
index dae991f..794affe 100644
--- a/dlls/gdi32/metafile.c
+++ b/dlls/gdi32/metafile.c
@@ -448,6 +448,7 @@ static BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
/* restore DC */
SelectObject(hdc, hPen);
SelectObject(hdc, hBrush);
+ SelectObject(hdc, hFont);
SelectPalette(hdc, hPal, FALSE);
ExtSelectClipRgn(hdc, hRgn, RGN_COPY);
DeleteObject(hRgn);
--
1.7.5
More information about the wine-patches
mailing list