Changeset 91
- Timestamp:
- Sep 14, 2007, 11:23:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/StatusWindow.cs
r86 r91 130 130 131 131 int totalMemory = (int)memStats.TotalVisibleMemorySize * 1024; 132 double rate = (double)fh / memStats.CommitLimit;132 double rate = (double)fh / (totalMemory * 1.5); 133 133 int border = (int)(totalMemory * rate); 134 134 135 135 g.FillRectangle(new SolidBrush(Color.White), 0, 0, fw, fh); 136 136 Pen pen = new Pen(Color.FromArgb(220, 220, 220), 1F); 137 for (int y = fh; y > 0; y -= (int)( 128*1024*1024 * rate))137 for (int y = fh; y > 0; y -= (int)(256*1024*1024 * rate)) 138 138 { 139 139 g.DrawLine(pen, 0, y, fw, y);
Note: See TracChangeset
for help on using the changeset viewer.