- check for the type of the DC to restore to decide whether we should restore the surface
Fixes yarotows specific FF3 bug

svn path=/branches/reactos-yarotows/; revision=47731
This commit is contained in:
Jérôme Gardou 2010-06-10 00:40:09 +00:00
parent a8ac489720
commit 4b10742ca5

View file

@ -149,7 +149,7 @@ DC_vRestoreDC(
DC_vCopyState(pdcSave, pdc, FALSE);
/* Only memory DC's change their surface */
if (pdcSave->dctype == DCTYPE_MEMORY)
if (pdc->dctype == DCTYPE_MEMORY)
DC_vSelectSurface(pdc, pdcSave->dclevel.pSurface);
// Restore Path by removing it, if the Save flag is set.