Skip to content

Commit 6b0126f

Browse files
committed
[NTGDI] Fix 3d-text screensaver not moving in preview mode
@I_Kill_Bugs fix. CORE-5601
1 parent e92be1e commit 6b0126f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

win32ss/gdi/ntgdi/gdiobj.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,12 @@ ENTRY_ReferenceEntryByHandle(HGDIOBJ hobj, FLONG fl)
479479
{
480480
ULONG ulIndex, cNewRefs, cOldRefs;
481481
PENTRY pentry;
482+
PTHREADINFO pti = PsGetCurrentThreadWin32Thread();
483+
484+
/* Allow a window that is moving or resizing to have access to all of its child
485+
windows dc's even if the dc belongs to another process i.e. 3D Screensaver */
486+
if (pti && pti->TIF_flags & TIF_MOVESIZETRACKING)
487+
fl = GDIOBJFLAG_IGNOREPID;
482488

483489
/* Get the handle index and check if its too big */
484490
ulIndex = GDI_HANDLE_GET_INDEX(hobj);

0 commit comments

Comments
 (0)