gdi32: restore font in MF_PlayMetaFile()

Austin English austinenglish at gmail.com
Tue Jul 20 23:34:37 CDT 2010


Otherwise, hFont is unused. Looks like it was let out originally,
something similar is done in EnumMetaFile()

-- 
-Austin
-------------- next part --------------
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);


More information about the wine-patches mailing list