From d2c2158e78ac1396d640598d7232137f9d9c6e13 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 28 Dec 2012 17:42:50 +0000 Subject: [PATCH] [SHELL32] * Correct a typo that led to incorrect Capacity value (shown in the disk properties). * Correct some colors inversion in the Free/Used disk space chart. * Brought to you by Victor Martinez Calvo. CORE-6838 #resolve #comment Committed in r58030. Gracias ;) svn path=/trunk/; revision=58030 --- reactos/dll/win32/shell32/drvdefext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/shell32/drvdefext.cpp b/reactos/dll/win32/shell32/drvdefext.cpp index bc188915671..5a0aba60b39 100644 --- a/reactos/dll/win32/shell32/drvdefext.cpp +++ b/reactos/dll/win32/shell32/drvdefext.cpp @@ -236,11 +236,11 @@ CDrvDefExt::PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT pDrawItem) pDrawItem->rcItem.left, yCenter); SelectObject(pDrawItem->hDC, hbrOld); - HPEN hOldPen = (HPEN)SelectObject(pDrawItem->hDC, hDarkBluePen); + HPEN hOldPen = (HPEN)SelectObject(pDrawItem->hDC, hDarkMagPen); for (INT x = pDrawItem->rcItem.left; x < pDrawItem->rcItem.right; ++x) { if (m_FreeSpacePerc < 50 && x == xRadial) - SelectObject(pDrawItem->hDC, hDarkMagPen); + SelectObject(pDrawItem->hDC, hDarkBluePen); double cos_val = (x - xCenter)*2.0f/cx; INT y = yCenter+(INT)(sin(acos(cos_val))*cy/2); @@ -309,7 +309,7 @@ CDrvDefExt::InitGeneralPage(HWND hwndDlg) SetDlgItemTextW(hwndDlg, 14006, wszBuf); /* Total space */ - if (SH_FormatByteSize(FreeBytesAvailable.QuadPart, wszBuf, _countof(wszBuf))) + if (SH_FormatByteSize(TotalNumberOfBytes.QuadPart, wszBuf, _countof(wszBuf))) SetDlgItemTextW(hwndDlg, 14007, wszBuf); if (StrFormatByteSizeW(TotalNumberOfBytes.QuadPart, wszBuf, _countof(wszBuf)))