gdi32: Move DC mapping APIs to the 'dc' debug channel, add some traces.

Dmitry Timoshkov dmitry at codeweavers.com
Thu Oct 23 05:54:04 CDT 2008


---
 dlls/gdi32/clipping.c |    1 +
 dlls/gdi32/mapping.c  |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/clipping.c b/dlls/gdi32/clipping.c
index e3a5851..98d6b55 100644
--- a/dlls/gdi32/clipping.c
+++ b/dlls/gdi32/clipping.c
@@ -468,6 +468,7 @@ INT WINAPI GetClipBox( HDC hdc, LPRECT rect )
     else ret = GetRgnBox( dc->hVisRgn, rect );
     DPtoLP( hdc, (LPPOINT)rect, 2 );
     release_dc_ptr( dc );
+    TRACE("%s\n", wine_dbgstr_rect( rect ));
     return ret;
 }
 
diff --git a/dlls/gdi32/mapping.c b/dlls/gdi32/mapping.c
index c5ea270..4815a83 100644
--- a/dlls/gdi32/mapping.c
+++ b/dlls/gdi32/mapping.c
@@ -27,7 +27,7 @@
 #include "gdi_private.h"
 #include "wine/debug.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(gdi);
+WINE_DEFAULT_DEBUG_CHANNEL(dc);
 
 
 /***********************************************************************
@@ -96,6 +96,7 @@ BOOL WINAPI DPtoLP( HDC hdc, LPPOINT points, INT count )
             points->y = floor( x * dc->xformVport2World.eM12 +
                                y * dc->xformVport2World.eM22 +
                                dc->xformVport2World.eDy + 0.5 );
+            TRACE("%f,%f => %d,%d\n", x, y, points->x, points->y);
             points++;
         }
     }
@@ -141,6 +142,7 @@ BOOL WINAPI LPtoDP( HDC hdc, LPPOINT points, INT count )
         points->y = floor( x * dc->xformWorld2Vport.eM12 +
                            y * dc->xformWorld2Vport.eM22 +
                            dc->xformWorld2Vport.eDy + 0.5 );
+        TRACE("%f,%f => %d,%d\n", x, y, points->x, points->y);
         points++;
     }
     release_dc_ptr( dc );
-- 
1.6.0.2




More information about the wine-patches mailing list