Author: akhaldi
Date: Fri Dec 28 17:42:50 2012
New Revision: 58030
URL: http://svn.reactos.org/svn/reactos?rev=58030&view=rev
Log:
[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 ;)
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/drvdefex…
==============================================================================
--- trunk/reactos/dll/win32/shell32/drvdefext.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/drvdefext.cpp [iso-8859-1] Fri Dec 28 17:42:50 2012
@@ -236,11 +236,11 @@
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 @@
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)))