diff --git a/reactos/include/reactos/drivers/directx/dxeng.h b/reactos/include/reactos/drivers/directx/dxeng.h index c53f7d50ce0..18d6d9fb66a 100644 --- a/reactos/include/reactos/drivers/directx/dxeng.h +++ b/reactos/include/reactos/drivers/directx/dxeng.h @@ -49,47 +49,27 @@ /************************************************************************/ /* win32k.sys internal protypes for the driver functions it export */ /************************************************************************/ - -/* Notes : Check see if termal server got a connections or not */ BOOL DxEngNUIsTermSrv(); - -/* Notes : it always return TRUE, and it update whole the screen (redaw current desktop) */ BOOL DxEngRedrawDesktop(); - -/* Notes : return the DisplayUniqVisrgn counter from gdishare memory */ ULONG DxEngDispUniq(); - -/* Notes : return the VisRgnUniq counter for win32k */ ULONG DxEngVisRgnUniq(); - -/* Notes : Enumate all drivers in win32k */ HDEV *DxEngEnumerateHdev(HDEV *hdev); - -/* Notes : same protypes NtGdiEngGetDeviceGammaRamp, diffent is we skipp the user mode checks and seh */ -BOOL -DxEngGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp); - -/* Notes : Lock the hDC */ +BOOL DxEngGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp); PDC DxEngLockDC(HDC hDC); - -/* Notes : Unlock the hDC */ BOOL DxEngUnlockDC(PDC pDC); - -/* Notes : Set Gamma ramp */ BOOL DxEngSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL Unuse); - BOOLEAN DxEngLockShareSem(); BOOLEAN DxEngUnlockShareSem(); BOOLEAN DxEngCleanDC(HDC hdc); DWORD DxEngGetHdevData(HDEV hdev, DWORD Index); BOOLEAN DxEngSetHdevData(HDEV hdev, DWORD Index, DWORD Save); +BOOLEAN DxEngIncDispUniq(); /* prototypes are not done yet, I need gather all my notes * to make them correct */ DWORD DxEngCreateMemoryDC(DWORD x1); DWORD DxEngScreenAccessCheck(); - DWORD DxEngLockHdev(DWORD x1); DWORD DxEngUnlockHdev(DWORD x1); DWORD DxEngReferenceHdev(DWORD x1); @@ -98,7 +78,6 @@ DWORD DxEngUnreferenceHdev(DWORD x1); DWORD DxEngSpTearDownSprites(DWORD x1, DWORD x2, DWORD x3); DWORD DxEngSpUnTearDownSprites(DWORD x1, DWORD x2, DWORD x3); DWORD DxEngSpSpritesVisible(DWORD x1); - DWORD DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3); DWORD DxEngDeleteDC(DWORD x1, DWORD x2); DWORD DxEngSetDCOwner(DWORD x1, DWORD x2); @@ -116,5 +95,5 @@ DWORD DxEngSyncPaletteTableWithDevice(DWORD x1, DWORD x2); DWORD DxEngSetPaletteState(DWORD x1, DWORD x2, DWORD x3); DWORD DxEngGetRedirectionBitmap(DWORD x1); DWORD DxEngLoadImage(DWORD x1,DWORD x2); -DWORD DxEngIncDispUniq(); + diff --git a/reactos/subsystems/win32/win32k/ntddraw/dxeng.c b/reactos/subsystems/win32/win32k/ntddraw/dxeng.c index fc6a4eb3545..14ddef33317 100644 --- a/reactos/subsystems/win32/win32k/ntddraw/dxeng.c +++ b/reactos/subsystems/win32/win32k/ntddraw/dxeng.c @@ -89,11 +89,19 @@ DxEngRedrawDesktop() } -/************************************************************************/ -/* DxEngDispUniq */ -/************************************************************************/ - -/* Notes : return the DisplayUniqVisrgn counter from gdishare memory */ +/*++ +* @name DxEngDispUniq +* @implemented +* +* The function DxEngDispUniq return the DisplayUniqVisrgn counter from gdishare memory +* +* @return +* return DisplayUniqVisrgn counter value from gdishare memory +* +* @remarks. +* none +* +*--*/ ULONG DxEngDispUniq() { @@ -633,13 +641,24 @@ DWORD DxEngLoadImage(DWORD x1,DWORD x2) return FALSE; } -/************************************************************************/ -/* DxEngIncDispUniq */ -/************************************************************************/ -DWORD DxEngIncDispUniq() +/*++ +* @name DxEngIncDispUniq +* @implemented +* +* The function DxEngIncDispUniq incress DisplayUniqVisrgn counter from gdishare memory +* +* @return +* This function returns TRUE no matter what +* +* @remarks. +* none +* +*--*/ +BOOLEAN +DxEngIncDispUniq() { - UNIMPLEMENTED; - return FALSE; + InterlockedIncrement((LONG*)&GdiHandleTable->flDeviceUniq); + return TRUE; }