mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
[SHELL32]
Fix a bug I introduced in r55498 Spotted by Thomas svn path=/trunk/; revision=55506
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user