Skip to content

Commit ad6cb32

Browse files
authored
[NTGDI] Fix 3D-text screensaver not moving in preview mode (reactos#8402)
Thanks, @I_Kill_Bugs for the fix. CORE-5601
1 parent 0172338 commit ad6cb32

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

win32ss/gdi/ntgdi/gdiobj.c

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

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

0 commit comments

Comments
 (0)