[SHELL32]

Fix a bug I introduced in r55498
Spotted by Thomas

svn path=/trunk/; revision=55506
This commit is contained in:
Timo Kreuzer 2012-02-08 22:53:29 +00:00
parent 54bd4f5cc8
commit 2adafb93b0

View file

@ -243,7 +243,7 @@ CDrvDefExt::PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT pDrawItem)
SelectObject(pDrawItem->hDC, hDarkMagPen);
double cos_val = (x - xCenter)*2.0f/cx;
INT y = yCenter+(INT)sin(acos(cos_val))*cy/2;
INT y = yCenter+(INT)(sin(acos(cos_val))*cy/2);
MoveToEx(pDrawItem->hDC, x, y, NULL);
LineTo(pDrawItem->hDC, x, y + 10);
}