Author: mkupfer Date: Fri Oct 17 16:54:03 2008 New Revision: 36801
URL: http://svn.reactos.org/svn/reactos?rev=36801&view=rev Log: draw disk usage bar from "used" to "free" (left to right)
Modified: trunk/reactos/dll/win32/shell32/drive.c
Modified: trunk/reactos/dll/win32/shell32/drive.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/drive.c?r... ============================================================================== --- trunk/reactos/dll/win32/shell32/drive.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/drive.c [iso-8859-1] Fri Oct 17 16:54:03 2008 @@ -350,11 +350,11 @@ horzsize = rect.right - rect.left; Result.QuadPart = (Result.QuadPart * horzsize) / 100;
- rect.right = rect.left + Result.QuadPart; - FillRect(drawItem->hDC, &rect, hMagBrush); + rect.right = drawItem->rcItem.right - Result.QuadPart; + FillRect(drawItem->hDC, &rect, hBlueBrush); rect.left = rect.right; rect.right = drawItem->rcItem.right; - FillRect(drawItem->hDC, &rect, hBlueBrush); + FillRect(drawItem->hDC, &rect, hMagBrush); DeleteObject(hBlueBrush); DeleteObject(hMagBrush); }