From 024b2b30b95efd93cedb71f5423f053280eeffa0 Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld Date: Mon, 15 Dec 2014 20:31:09 +1100 Subject: [PATCH] trivial cleanup --- qxldod/QxlDod.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index 2b4208c..f2d9fd9 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -2533,6 +2533,7 @@ NTSTATUS VgaDevice::HWInit(PCM_RESOURCE_LIST pResList, DXGK_DISPLAY_INFORMATION* { DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__)); UNREFERENCED_PARAMETER(pResList); + UNREFERENCED_PARAMETER(pDispInfo); DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__)); return GetModeList(pDispInfo); } @@ -2554,7 +2555,7 @@ NTSTATUS VgaDevice::SetPowerState(_In_ DEVICE_POWER_STATE DevicePowerState, DXG switch (DevicePowerState) { case PowerDeviceUnspecified: - case PowerDeviceD0: regs.Ebx |= 0x1; break; + case PowerDeviceD0: regs.Ebx |= 0x1; break; case PowerDeviceD1: case PowerDeviceD2: case PowerDeviceD3: regs.Ebx |= 0x400; break; @@ -2749,7 +2750,7 @@ VgaDevice::ExecutePresentDisplayOnly( // Copy all the scroll rects from source image to video frame buffer. for (UINT i = 0; i < ctx->NumMoves; i++) { - POINT* pSourcePoint = &ctx->Moves[i].SourcePoint; +// POINT* pSourcePoint = &ctx->Moves[i].SourcePoint; RECT* pDestRect = &ctx->Moves[i].DestRect; // DbgPrint(TRACE_LEVEL_FATAL, ("--- %d SourcePoint.x = %ld, SourcePoint.y = %ld, DestRect.bottom = %ld, DestRect.left = %ld, DestRect.right = %ld, DestRect.top = %ld\n", @@ -2852,11 +2853,13 @@ VOID VgaDevice::ResetDevice(VOID) NTSTATUS VgaDevice::SetPointerShape(_In_ CONST DXGKARG_SETPOINTERSHAPE* pSetPointerShape) { + UNREFERENCED_PARAMETER(pSetPointerShape); return STATUS_NOT_SUPPORTED; } NTSTATUS VgaDevice::SetPointerPosition(_In_ CONST DXGKARG_SETPOINTERPOSITION* pSetPointerPosition) { + UNREFERENCED_PARAMETER(pSetPointerPosition); return STATUS_SUCCESS; } @@ -3039,7 +3042,7 @@ NTSTATUS QxlDevice::SetPowerState(_In_ DEVICE_POWER_STATE DevicePowerState, DXGK NTSTATUS QxlDevice::HWInit(PCM_RESOURCE_LIST pResList, DXGK_DISPLAY_INFORMATION* pDispInfo) { DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__)); - NTSTATUS Status = STATUS_SUCCESS; +// NTSTATUS Status = STATUS_SUCCESS; PDXGKRNL_INTERFACE pDxgkInterface = m_pQxlDod->GetDxgkInterrface(); UINT pci_range = QXL_RAM_RANGE_INDEX; for (ULONG i = 0; i < pResList->Count; ++i) @@ -4068,6 +4071,8 @@ VOID QxlDevice::BltBits ( LONG height; DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__)); + UNREFERENCED_PARAMETER(NumRects); + UNREFERENCED_PARAMETER(pDst); if (!(drawable = Drawable(QXL_DRAW_COPY, pRects, NULL, 0))) { DbgPrint(TRACE_LEVEL_ERROR, ("Cannot get Drawable.\n")); @@ -4156,7 +4161,7 @@ VOID QxlDevice::PutBytesAlign(QXLDataChunk **chunk_ptr, UINT8 **now_ptr, QXLDataChunk *chunk = *chunk_ptr; UINT8 *now = *now_ptr; UINT8 *end = *end_ptr; - int offset; +// int offset; DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__)); while (size) { @@ -4245,7 +4250,7 @@ NTSTATUS QxlDevice::SetPointerShape(_In_ CONST DXGKARG_SETPOINTERSHAPE* pSetPoi QXLCursor *cursor; Resource *res; QXLDataChunk *chunk; - ULONG unique; +// ULONG unique; UINT8 *src; UINT8 *src_end; UINT8 *now;