From 3dbb216746e71e1a605bb683ed46b3b02fbd03db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 17 Jun 2010 01:34:52 +0000 Subject: [PATCH] [WIN32K] - apply r47787 to yarotows svn path=/branches/reactos-yarotows/; revision=47797 --- subsystems/win32/win32k/objects/dcobjs.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subsystems/win32/win32k/objects/dcobjs.c b/subsystems/win32/win32k/objects/dcobjs.c index 302503f8b9b..b0ce8b5dc8f 100644 --- a/subsystems/win32/win32k/objects/dcobjs.c +++ b/subsystems/win32/win32k/objects/dcobjs.c @@ -299,6 +299,16 @@ NtGdiSelectBitmap( psurfBmp->SurfObj.sizlBitmap.cx, psurfBmp->SurfObj.sizlBitmap.cy); + if (psurfBmp->hSecure) + { + /* Set DIBSECTION attribute */ + pdcattr->ulDirty_ |= DC_DIBSECTION; + } + else + { + pdcattr->ulDirty_ &= ~DC_DIBSECTION; + } + /* Release the exclusive lock */ SURFACE_UnlockSurface(psurfBmp);