Author: zguo
Date: Thu Dec 11 20:01:52 2014
New Revision: 65610
URL:
http://svn.reactos.org/svn/reactos?rev=65610&view=rev
Log:
[SHIMGVW]
Implement rotation of images, but does not save changes or warn of quality loss.
CORE-7567
Modified:
trunk/reactos/dll/win32/shimgvw/shimgvw.c
Modified: trunk/reactos/dll/win32/shimgvw/shimgvw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shimgvw/shimgvw.…
==============================================================================
--- trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] Thu Dec 11 20:01:52 2014
@@ -322,6 +322,13 @@
}
static VOID
+ImageView_UpdateWindow(HWND hwnd)
+{
+ InvalidateRect(hwnd, NULL, FALSE);
+ UpdateWindow(hwnd);
+}
+
+static VOID
ImageView_DrawImage(HWND hwnd)
{
GpGraphics *graphics;
@@ -561,9 +568,17 @@
break;
case IDC_ROT1:
+ {
+ GdipImageRotateFlip(image, Rotate270FlipNone);
+ ImageView_UpdateWindow(hwnd);
+ }
break;
case IDC_ROT2:
+ {
+ GdipImageRotateFlip(image, Rotate90FlipNone);
+ ImageView_UpdateWindow(hwnd);
+ }
break;
}