Skip to content

Commit c84915d

Browse files
committed
Enhancements to WindowTranslateImage
1 parent 1540f4c commit c84915d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

miniwindow.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4245,14 +4245,14 @@ long CMiniWindow::TranslateImage(LPCTSTR ImageId, float Left, float Top, short M
42454245
return eBadParameter;
42464246
}
42474247

4248-
// x' = x * Mxx + y * Mxy + Dx,
4249-
// y' = x * Myx + y * Myy + Dy,
4248+
// x' = x * Mxx + y * Mxy + Left
4249+
// y' = x * Myx + y * Myy + Top
42504250

42514251
XFORM xform;
4252-
xform.eM11 = Mxx;
4253-
xform.eM21 = Mxy;
4254-
xform.eM12 = Myx;
4255-
xform.eM22 = Myy;
4252+
xform.eM11 = Mxx; // cosine
4253+
xform.eM21 = Mxy; // sine
4254+
xform.eM12 = Myx; // - sine
4255+
xform.eM22 = Myy; // cosine
42564256
xform.eDx = Left;
42574257
xform.eDy = Top;
42584258

0 commit comments

Comments
 (0)