view[4/4]: reset the image left-top corner to the window left-top corner after a Scale to Window

Mikołaj Zalewski mikolaj at zalewski.pl
Wed Sep 27 05:03:23 CDT 2006


This is what I would expect from such a command
-------------- next part --------------
diff --git a/programs/view/view.c b/programs/view/view.c
index 7e82ba4..0a5497d 100644
--- a/programs/view/view.c
+++ b/programs/view/view.c
@@ -96,6 +96,7 @@ LRESULT CALLBACK WndProc(HWND hwnd,
 	    GetClientRect(hwnd, &r);
 	    width = r.right - r.left;
 	    height = r.bottom - r.top;
+	    deltax = deltay = 0;
 	    InvalidateRect( hwnd, NULL, TRUE );
 	  }
 	  break;
-- 
1.4.1


More information about the wine-patches mailing list