From fc86d60e95bba0c3febb2c55ea576daed4e5e37e Mon Sep 17 00:00:00 2001 From: Matthias Kupfer Date: Fri, 17 Oct 2008 21:54:03 +0000 Subject: [PATCH] draw disk usage bar from "used" to "free" (left to right) svn path=/trunk/; revision=36801 --- reactos/dll/win32/shell32/drive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/shell32/drive.c b/reactos/dll/win32/shell32/drive.c index 44135c97d32..53932de01f0 100644 --- a/reactos/dll/win32/shell32/drive.c +++ b/reactos/dll/win32/shell32/drive.c @@ -350,11 +350,11 @@ PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT drawItem) 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); }