Changeset 83


Ignore:
Timestamp:
Jul 24, 2006, 6:03:42 PM (18 years ago)
Author:
rryu
Message:

グラフのバーの太さの計算結果を小数点以下を切り上げるようにした。
ついでにグラフの表示エリアを調整した。

Location:
trunk/MacFaceFloat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/StatusWindow.cs

    r69 r83  
    9292                        if (count >= 2)
    9393                        {
    94                                 int bw = fw / 60;
     94                                int bw = (fw + (60-1)) / 60;
    9595                                Point[] userGraph = new Point[count+2];
    9696                                Point[] sysGraph = new Point[count+2];
     
    149149
    150150                        int count = memStats.Count;
    151                         int bw = fw / 60;
     151                        int bw = (fw + (60-1)) / 60;
    152152
    153153                        for (int i = 0; i < count; i++)
     
    219219                                | System.Windows.Forms.AnchorStyles.Right)));
    220220                        this.memoryGraphPicBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    221                         this.memoryGraphPicBox.Location = new System.Drawing.Point(8, 8);
     221                        this.memoryGraphPicBox.Location = new System.Drawing.Point(7, 8);
    222222                        this.memoryGraphPicBox.Name = "memoryGraphPicBox";
    223                         this.memoryGraphPicBox.Size = new System.Drawing.Size(296, 104);
     223                        this.memoryGraphPicBox.Size = new System.Drawing.Size(300, 100);
    224224                        this.memoryGraphPicBox.TabIndex = 0;
    225225                        this.memoryGraphPicBox.TabStop = false;
     
    230230                                | System.Windows.Forms.AnchorStyles.Right)));
    231231                        this.cpuGraphPicBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    232                         this.cpuGraphPicBox.Location = new System.Drawing.Point(8, 120);
     232                        this.cpuGraphPicBox.Location = new System.Drawing.Point(7, 116);
    233233                        this.cpuGraphPicBox.Name = "cpuGraphPicBox";
    234                         this.cpuGraphPicBox.Size = new System.Drawing.Size(296, 104);
     234                        this.cpuGraphPicBox.Size = new System.Drawing.Size(300, 100);
    235235                        this.cpuGraphPicBox.TabIndex = 1;
    236236                        this.cpuGraphPicBox.TabStop = false;
     
    239239                        //
    240240                        this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    241                         this.ClientSize = new System.Drawing.Size(314, 232);
     241                        this.ClientSize = new System.Drawing.Size(314, 223);
    242242                        this.Controls.Add(this.cpuGraphPicBox);
    243243                        this.Controls.Add(this.memoryGraphPicBox);
     
    245245                        this.MaximizeBox = false;
    246246                        this.MinimizeBox = false;
    247                         this.MinimumSize = new System.Drawing.Size(322, 261);
     247                        this.MinimumSize = new System.Drawing.Size(322, 250);
    248248                        this.Name = "StatusWindow";
    249249                        this.Text = "ƒXƒe[ƒ^ƒX";
  • trunk/MacFaceFloat/StatusWindow.resx

    r69 r83  
    110110    <value>False</value>
    111111  </data>
     112  <data name="cpuGraphPicBox.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     113    <value>Private</value>
     114  </data>
    112115  <data name="cpuGraphPicBox.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    113116    <value>Assembly</value>
    114   </data>
    115   <data name="cpuGraphPicBox.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    116     <value>Private</value>
    117117  </data>
    118118  <data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Note: See TracChangeset for help on using the changeset viewer.