wxDC::Blit(): the source coordinates are logical coordinates
authorRobert Roebling <robert@roebling.de>
Mon, 28 Jan 2002 17:58:36 +0000 (17:58 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 28 Jan 2002 17:58:36 +0000 (17:58 +0000)
    of the source DC now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp
src/gtk1/dcclient.cpp

index dc90bf665aff7ff1a9e4adb160e4fee08c1a4fcf..a4d23bf84ad55accefe91b6f91e07e39f6b7add1 100644 (file)
@@ -1104,10 +1104,10 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest,
 
     if (!m_window) return FALSE;
 
-#if 0
+#if 1
     // transform the source DC coords to the device ones
-    xsrc = XLOG2DEV(xsrc);
-    ysrc = YLOG2DEV(ysrc);
+    xsrc = source->XLOG2DEV(xsrc);
+    ysrc = source->YLOG2DEV(ysrc);
 #endif
 
     wxClientDC *srcDC = (wxClientDC*)source;
index dc90bf665aff7ff1a9e4adb160e4fee08c1a4fcf..a4d23bf84ad55accefe91b6f91e07e39f6b7add1 100644 (file)
@@ -1104,10 +1104,10 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest,
 
     if (!m_window) return FALSE;
 
-#if 0
+#if 1
     // transform the source DC coords to the device ones
-    xsrc = XLOG2DEV(xsrc);
-    ysrc = YLOG2DEV(ysrc);
+    xsrc = source->XLOG2DEV(xsrc);
+    ysrc = source->YLOG2DEV(ysrc);
 #endif
 
     wxClientDC *srcDC = (wxClientDC*)source;