mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 12:20:21 +00:00
draw disk usage bar from "used" to "free" (left to right)
svn path=/trunk/; revision=36801
This commit is contained in:
parent
9353696890
commit
fc86d60e95
|
@ -350,11 +350,11 @@ PaintStaticControls(HWND hwndDlg, LPDRAWITEMSTRUCT drawItem)
|
||||||
horzsize = rect.right - rect.left;
|
horzsize = rect.right - rect.left;
|
||||||
Result.QuadPart = (Result.QuadPart * horzsize) / 100;
|
Result.QuadPart = (Result.QuadPart * horzsize) / 100;
|
||||||
|
|
||||||
rect.right = rect.left + Result.QuadPart;
|
rect.right = drawItem->rcItem.right - Result.QuadPart;
|
||||||
FillRect(drawItem->hDC, &rect, hMagBrush);
|
FillRect(drawItem->hDC, &rect, hBlueBrush);
|
||||||
rect.left = rect.right;
|
rect.left = rect.right;
|
||||||
rect.right = drawItem->rcItem.right;
|
rect.right = drawItem->rcItem.right;
|
||||||
FillRect(drawItem->hDC, &rect, hBlueBrush);
|
FillRect(drawItem->hDC, &rect, hMagBrush);
|
||||||
DeleteObject(hBlueBrush);
|
DeleteObject(hBlueBrush);
|
||||||
DeleteObject(hMagBrush);
|
DeleteObject(hMagBrush);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue