mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 02:16:49 +00:00
[NTDDRAW][NTGDI][VGADDI] Add missing \n to DPRINT() calls (#5952)
Add missing \n to DPRINT() calls and demote some DPRINT1().
This commit is contained in:
parent
bd0a5498b0
commit
24757e30e9
12 changed files with 237 additions and 315 deletions
|
@ -9,6 +9,8 @@
|
|||
*/
|
||||
|
||||
#include <win32k.h>
|
||||
|
||||
// #define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
PGD_DXDDSTARTUPDXGRAPHICS gpfnStartupDxGraphics = NULL;
|
||||
|
@ -19,7 +21,6 @@ extern DRVFN gaEngFuncs[];
|
|||
extern ULONG gcEngFuncs;
|
||||
extern EDD_DIRECTDRAW_GLOBAL edd_DdirectDraw_Global;
|
||||
|
||||
|
||||
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl + 1];
|
||||
HANDLE ghDxGraphics = NULL;
|
||||
ULONG gdwDirectDrawContext = 0;
|
||||
|
@ -48,7 +49,6 @@ DxDdStartupDxGraphics( ULONG ulc1,
|
|||
* no code have been writen for it yet
|
||||
*/
|
||||
|
||||
|
||||
/* FIXME: ReactOS does not loading the dxapi.sys or import functions from it yet */
|
||||
// DxApiGetVersion()
|
||||
|
||||
|
@ -109,12 +109,11 @@ DxDdStartupDxGraphics( ULONG ulc1,
|
|||
gpDxFuncs[lstDrvFN[t].iFunc].pfn =lstDrvFN[t].pfn;
|
||||
}
|
||||
|
||||
DPRINT1("DirectX interface is activated\n");
|
||||
|
||||
DPRINT("DirectX interface is activated\n");
|
||||
}
|
||||
/* Return the status */
|
||||
}
|
||||
|
||||
/* Return the status */
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -146,7 +145,7 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys DdCreateDirectDrawObject\n");
|
||||
DPRINT("Calling dxg.sys pfnDdCreateDirectDrawObject\n");
|
||||
|
||||
return pfnDdCreateDirectDrawObject(hdc);
|
||||
}
|
||||
|
@ -201,7 +200,7 @@ NtGdiDxgGenericThunk(ULONG_PTR ulIndex,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDxgGenericThunk\n");
|
||||
DPRINT("Calling dxg.sys pfnDxgGenericThunk\n");
|
||||
return pfnDxgGenericThunk(ulIndex, ulHandle, pdwSizeOfPtr1, pvPtr1, pdwSizeOfPtr2, pvPtr2);
|
||||
}
|
||||
|
||||
|
@ -220,7 +219,7 @@ NtGdiDdGetDriverState(PDD_GETDRIVERSTATEDATA pdata)
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys DdGetDriverState\n");
|
||||
DPRINT("Calling dxg.sys pfnDdGetDriverState\n");
|
||||
return pfnDdGetDriverState(pdata);
|
||||
}
|
||||
|
||||
|
@ -240,7 +239,7 @@ NtGdiDdColorControl(HANDLE hSurface,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys DdColorControl\n");
|
||||
DPRINT("Calling dxg.sys pfnDdColorControl\n");
|
||||
return pfnDdColorControl(hSurface,puColorControlData);
|
||||
}
|
||||
|
||||
|
@ -265,7 +264,7 @@ NtGdiDdCreateSurfaceObject(HANDLE hDirectDrawLocal,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdCreateSurfaceObject\n");
|
||||
DPRINT("Calling dxg.sys pfnDdCreateSurfaceObject\n");
|
||||
return pfnDdCreateSurfaceObject(hDirectDrawLocal, hSurface, puSurfaceLocal, puSurfaceMore, puSurfaceGlobal, bComplete);
|
||||
}
|
||||
|
||||
|
@ -290,9 +289,7 @@ NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
DPRINT1("hDirectDrawLocal = %p \n", hDirectDrawLocal);
|
||||
DPRINT1("Calling dxg.sys pfnDdDeleteDirectDrawObject\n");
|
||||
|
||||
DPRINT("Calling dxg.sys pfnDdDeleteDirectDrawObject(%p)\n", hDirectDrawLocal);
|
||||
return pfnDdDeleteDirectDrawObject(hDirectDrawLocal);
|
||||
}
|
||||
|
||||
|
@ -312,7 +309,7 @@ NtGdiDdDeleteSurfaceObject(HANDLE hSurface)
|
|||
}
|
||||
/* Try and see if the handle is valid */
|
||||
|
||||
DPRINT1("Calling dxg.sys DdDeleteSurfaceObject\n");
|
||||
DPRINT("Calling dxg.sys pfnDdDeleteSurfaceObject\n");
|
||||
return pfnDdDeleteSurfaceObject(hSurface);
|
||||
}
|
||||
|
||||
|
@ -341,15 +338,11 @@ NtGdiDdQueryDirectDrawObject(HANDLE hDirectDrawLocal,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdQueryDirectDrawObject\n");
|
||||
|
||||
|
||||
DPRINT("Calling dxg.sys pfnDdQueryDirectDrawObject\n");
|
||||
return pfnDdQueryDirectDrawObject(hDirectDrawLocal, pHalInfo, pCallBackFlags, puD3dCallbacks, puD3dDriverData,
|
||||
puD3dBufferCallbacks, puD3dTextureFormats, puNumHeaps, puvmList, puNumFourCC, puFourCC);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* NtGdiDdReenableDirectDrawObject */
|
||||
/************************************************************************/
|
||||
|
@ -359,7 +352,7 @@ NtGdiDdReenableDirectDrawObject(HANDLE hDirectDrawLocal,
|
|||
BOOL *pubNewMode)
|
||||
{
|
||||
#if DXDBG
|
||||
BOOL status = FALSE;
|
||||
BOOL status;
|
||||
#endif
|
||||
PGD_DXDDREENABLEDIRECTDRAWOBJECT pfnDdReenableDirectDrawObject = (PGD_DXDDREENABLEDIRECTDRAWOBJECT)gpDxFuncs[DXG_INDEX_DxDdReenableDirectDrawObject].pfn;
|
||||
|
||||
|
@ -369,19 +362,16 @@ NtGdiDdReenableDirectDrawObject(HANDLE hDirectDrawLocal,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdReenableDirectDrawObject\n");
|
||||
|
||||
DPRINT("Calling dxg.sys pfnDdReenableDirectDrawObject\n");
|
||||
#if DXDBG
|
||||
status = pfnDdReenableDirectDrawObject(hDirectDrawLocal, pubNewMode);
|
||||
DPRINT1("end Calling dxg.sys pfnDdReenableDirectDrawObject\n");
|
||||
DPRINT1("return value : 0x%08x\n", status);
|
||||
DPRINT1("end Calling dxg.sys pfnDdReenableDirectDrawObject, status: 0x%08x\n", status);
|
||||
return status;
|
||||
#else
|
||||
return pfnDdReenableDirectDrawObject(hDirectDrawLocal, pubNewMode);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* NtGdiDdGetDriverInfo */
|
||||
/************************************************************************/
|
||||
|
@ -399,11 +389,10 @@ NtGdiDdGetDriverInfo(HANDLE hDirectDrawLocal,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdGetDriverInfo\n");
|
||||
DPRINT("Calling dxg.sys pfnDdGetDriverInfo\n");
|
||||
return pfnDdGetDriverInfo(hDirectDrawLocal, puGetDriverInfoData);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* NtGdiDdGetAvailDriverMemory */
|
||||
/************************************************************************/
|
||||
|
@ -420,11 +409,10 @@ NtGdiDdGetAvailDriverMemory(HANDLE hDirectDrawLocal,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdGetAvailDriverMemory\n");
|
||||
DPRINT("Calling dxg.sys pfnDdGetAvailDriverMemory\n");
|
||||
return pfnDdGetAvailDriverMemory(hDirectDrawLocal, puGetAvailDriverMemoryData);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* NtGdiDdSetExclusiveMode */
|
||||
/************************************************************************/
|
||||
|
@ -442,12 +430,10 @@ NtGdiDdSetExclusiveMode(HANDLE hDirectDraw,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdSetExclusiveMode\n");
|
||||
DPRINT("Calling dxg.sys pfnDdSetExclusiveMode\n");
|
||||
return pfnDdSetExclusiveMode(hDirectDraw, puSetExclusiveModeData);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* NtGdiDdFlipToGDISurface */
|
||||
/************************************************************************/
|
||||
|
@ -464,9 +450,8 @@ NtGdiDdFlipToGDISurface(HANDLE hDirectDraw,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdFlipToGDISurface\n");
|
||||
DPRINT("Calling dxg.sys pfnDdFlipToGDISurface\n");
|
||||
return pfnDdFlipToGDISurface(hDirectDraw, puFlipToGDISurfaceData);
|
||||
|
||||
}
|
||||
|
||||
/************************************************************************/
|
||||
|
@ -485,7 +470,7 @@ NtGdiDdGetDC(HANDLE hSurface,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdGetDC\n");
|
||||
DPRINT("Calling dxg.sys pfnDdGetDC\n");
|
||||
return pfnDdGetDC(hSurface, puColorTable);
|
||||
}
|
||||
|
||||
|
@ -506,11 +491,10 @@ NtGdiDdGetDxHandle(HANDLE hDirectDraw,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdGetDxHandle\n");
|
||||
DPRINT("Calling dxg.sys pfnDdGetDxHandle\n");
|
||||
return pfnDdGetDxHandle(hDirectDraw, hSurface, bRelease);
|
||||
}
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* NtGdiDdReleaseDC */
|
||||
/************************************************************************/
|
||||
|
@ -526,7 +510,7 @@ NtGdiDdReleaseDC(HANDLE hSurface)
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdReleaseDC\n");
|
||||
DPRINT("Calling dxg.sys pfnDdReleaseDC\n");
|
||||
return pfnDdReleaseDC(hSurface);
|
||||
}
|
||||
|
||||
|
@ -547,7 +531,7 @@ NtGdiDdResetVisrgn(HANDLE hSurface,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdResetVisrgn\n");
|
||||
DPRINT("Calling dxg.sys pfnDdResetVisrgn\n");
|
||||
return pfnDdResetVisrgn(hSurface, hwnd);
|
||||
}
|
||||
|
||||
|
@ -568,6 +552,6 @@ NtGdiDdSetGammaRamp(HANDLE hDirectDraw,
|
|||
return DDHAL_DRIVER_NOTHANDLED;
|
||||
}
|
||||
|
||||
DPRINT1("Calling dxg.sys pfnDdSetGammaRamp\n");
|
||||
DPRINT("Calling dxg.sys pfnDdSetGammaRamp\n");
|
||||
return pfnDdSetGammaRamp(hDirectDraw, hdc, lpGammaRamp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue