Author: tkreuzer Date: Wed Feb 8 22:53:29 2012 New Revision: 55506
URL: http://svn.reactos.org/svn/reactos?rev=55506&view=rev Log: [SHELL32] Fix a bug I introduced in r55498 Spotted by Thomas
Modified: trunk/reactos/dll/win32/shell32/drvdefext.cpp
Modified: trunk/reactos/dll/win32/shell32/drvdefext.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/drvdefext... ============================================================================== --- trunk/reactos/dll/win32/shell32/drvdefext.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/drvdefext.cpp [iso-8859-1] Wed Feb 8 22:53:29 2012 @@ -243,7 +243,7 @@ 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); }