undid an overeager WXUNUSED() which broke non-Mac compilation
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Nov 2007 22:47:05 +0000 (22:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Nov 2007 22:47:05 +0000 (22:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dragimgg.cpp

index 56ee35e91ddd494ef0dab5fc395ecefa6c20dacf..6cf4a3392561f5830686cf9f1d4aba7e54086002 100644 (file)
@@ -451,7 +451,7 @@ bool wxGenericDragImage::Hide()
 }
 
 // More efficient: erase and redraw simultaneously if possible
-bool wxGenericDragImage::RedrawImage(const wxPoint& WXUNUSED(oldPos),
+bool wxGenericDragImage::RedrawImage(const wxPoint& oldPos,
                                      const wxPoint& newPos,
                                      bool eraseOld, bool drawNew)
 {
@@ -459,6 +459,8 @@ bool wxGenericDragImage::RedrawImage(const wxPoint& WXUNUSED(oldPos),
         return false;
 
 #ifdef wxHAS_NATIVE_OVERLAY
+    wxUnusedVar(oldPos);
+
     wxDCOverlay dcoverlay( m_overlay, (wxWindowDC*) m_windowDC ) ;
     if ( eraseOld )
         dcoverlay.Clear() ;