mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 05:05:09 +00:00
[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
This commit is contained in:
parent
059e3cee33
commit
d2c2158e78
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue