Author: gadamopoulos
Date: Wed Jul 14 07:51:54 2010
New Revision: 48033
URL:
http://svn.reactos.org/svn/reactos?rev=48033&view=rev
Log:
[win32k]
- Remove test code
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win3…
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c [iso-8859-1] Wed Jul 14
07:51:54 2010
@@ -25,11 +25,6 @@
PSWM_WINDOW NTAPI SwmGetForegroundWindow(BOOLEAN TopMost);
VOID NTAPI SwmClipAllWindows();
-
-VOID NTAPI SwmDumpRegion(struct region *Region);
-VOID NTAPI SwmDumpWindows();
-VOID NTAPI SwmDebugDrawWindows();
-VOID NTAPI SwmTest();
/* GLOBALS *******************************************************************/
@@ -957,186 +952,6 @@
{
DPRINT1("Failure initializing SWM resource!\n");
}
-
- //SwmTest();
-}
-
-VOID
-NTAPI
-SwmDumpRegion(struct region *Region)
-{
- ULONG i;
-
- //get_region_extents(Region, &ExtRect);
-
- for (i=0; i<Region->num_rects; i++)
- {
- DbgPrint("(%d,%d)-(%d,%d) ", Region->rects[i].left,
Region->rects[i].top,
- Region->rects[i].right, Region->rects[i].bottom);
- }
-
- DbgPrint("\n");
-}
-
-VOID
-NTAPI
-SwmDumpWindows()
-{
- PLIST_ENTRY Current;
- PSWM_WINDOW Window;
-
- DPRINT1("Windows in z order: ");
-
- /* Traverse the list to find our window */
- Current = SwmWindows.Flink;
- while(Current != &SwmWindows)
- {
- Window = CONTAINING_RECORD(Current, SWM_WINDOW, Entry);
-
- DbgPrint("%x regions: \n", Window->hwnd);
- SwmDumpRegion(Window->Visible);
-
- /* Advance to the next window */
- Current = Current->Flink;
- }
-
- DbgPrint("\n");
-}
-
-VOID
-NTAPI
-SwmDebugDrawRect(HDC hDC, rectangle_t *Rect, ULONG Color)
-{
-#if 0
- PDC pDC;
- ULONG Scale = 4;
-
- /* Get a pointer to the DC */
- pDC = DC_LockDc(hDC);
-
- pDC->dclevel.pbrLine->BrushObject.iSolidColor = Color;
-
- GreRectangle(pDC, Rect->left / Scale, Rect->top / Scale, Rect->right /
Scale, Rect->bottom / Scale);
-
- /* Release the object */
- DC_UnlockDc(pDC);
-#endif
-}
-
-VOID
-NTAPI
-SwmDebugDrawRegion(HDC hDC, struct region *Region, ULONG Color)
-{
-#if 0
- PDC pDC;
- ULONG Scale = 4, i;
-
- if (is_region_empty(Region)) return;
-
- /* Get a pointer to the DC */
- pDC = DC_LockDc(hDC);
-
- pDC->dclevel.pbrLine->BrushObject.iSolidColor = Color;
-
- for (i=0; i<Region->num_rects; i++)
- GreRectangle(pDC, Region->rects[i].left / Scale, Region->rects[i].top /
Scale,
- Region->rects[i].right / Scale, Region->rects[i].bottom / Scale);
-
- /* Release the object */
- DC_UnlockDc(pDC);
-#endif
-}
-
-VOID
-NTAPI
-SwmDebugDrawWindows()
-{
-#if 0
- PLIST_ENTRY Current;
- PSWM_WINDOW Window;
- HDC ScreenDc = 0;
- ROS_DCINFO RosDc = {0};
- PEBRUSHOBJ Brush, BrushBack;
- PDC pDC;
- RECTL rcSafeBounds;
-
- /* Create a dc */
- RosGdiCreateDC(&RosDc, &ScreenDc, L"", L"",
L"", NULL);
-
- /* Create a pen and select it */
- Brush = GreCreateSolidBrush(NULL, RGB(0xFF, 0, 0));
-
- /* Get a pointer to the DC */
- pDC = DC_LockDc(ScreenDc);
- GreFreeBrush(pDC->dclevel.pbrLine);
- pDC->dclevel.pbrLine = Brush;
-
- /* Set the clipping object */
- IntEngDeleteClipRegion(pDC->CombinedClip);
- RECTL_vSetRect(&rcSafeBounds,
- 0,
- 0,
- 640,
- 480);
-
- pDC->CombinedClip = IntEngCreateClipRegion(1, &rcSafeBounds,
&rcSafeBounds);
-
- /* Clear the area */
- BrushBack = pDC->dclevel.pbrFill;
- pDC->dclevel.pbrFill = GreCreateSolidBrush(NULL, RGB(0,0,0));
- GreRectangle(pDC, 0, 0, 800/4, 600/4);
- GreFreeBrush(pDC->dclevel.pbrFill);
- pDC->dclevel.pbrFill = BrushBack;
-
- DC_UnlockDc(pDC);
-
- /* Traverse the list to find our window */
- Current = SwmWindows.Flink;
- while(Current != &SwmWindows)
- {
- Window = CONTAINING_RECORD(Current, SWM_WINDOW, Entry);
-
- SwmDebugDrawRect(ScreenDc, &Window->Window, RGB(0,0,255));
- SwmDebugDrawRegion(ScreenDc, Window->Visible, RGB(255,0,0));
-
- /* Advance to the next window */
- Current = Current->Flink;
- }
-
- /* Delete screen dc */
- GreFreeBrush(Brush);
- RosGdiDeleteDC(ScreenDc);
-#endif
-}
-
-VOID
-NTAPI
-SwmTest()
-{
-#if 0
- RECT rect;
- HWND hwnd;
-
- /* "desktop" */
- hwnd = (HWND)1;
- rect.left = 0; rect.top = 0;
- rect.right = 100; rect.bottom = 100;
- SwmAddWindow(hwnd, &rect);
-
- /* win1 */
- hwnd = (HWND)2;
- rect.left = 40; rect.top = 40;
- rect.right = 60; rect.bottom = 60;
- SwmAddWindow(hwnd, &rect);
-
- /* win2 */
- hwnd = (HWND)3;
- rect.left = 50; rect.top = 50;
- rect.right = 70; rect.bottom = 70;
- SwmAddWindow(hwnd, &rect);
-
- SwmDumpWindows();
-#endif
}
/* EOF */