Changeset 73


Ignore:
Timestamp:
Jul 12, 2006, 12:16:33 AM (18 years ago)
Author:
mayuki
Message:
  • PSAPIパッチをとりあえず取り込んでしまった
  • リサイズ時にバイキュービックを使うようにした
  • 前回起動時のパターンが存在しない場合、エラーとなったのを修正した
  • デフォルトパターンのパスを修正した
Location:
trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/AssemblyInfo.cs

    r67 r73  
    1212[assembly: AssemblyCompany("Team MacFace")]
    1313[assembly: AssemblyProduct("MacFace for Windows")]
    14 [assembly: AssemblyCopyright("c 2005 Team MacFace, All rights reserved.")]
     14[assembly: AssemblyCopyright("Copyright c 2005-2006 Team MacFace, All rights reserved.")]
    1515[assembly: AssemblyTrademark("")]
    1616[assembly: AssemblyCulture("")]         
     
    2727// ƒrƒ‹ƒh‚¨‚æ‚уŠƒrƒWƒ‡ƒ“”ԍ†‚ðŠù’è’l‚É‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B
    2828
    29 [assembly: AssemblyInformationalVersion("ƒAƒ‹ƒtƒ@”Å(2005-09-09)")]
     29[assembly: AssemblyInformationalVersion("ƒAƒ‹ƒtƒ@”Å(2005-09-09)+p3")]
    3030[assembly: AssemblyVersion("1.0.*")]
    3131
  • trunk/MacFaceFloat/MacFaceApp.cs

    r72 r73  
    3939                private MenuItem menuItemTogglePatternWindow;
    4040                private MenuItem menuItemToggleStatusWindow;
     41                private MacFace.FaceDef curFaceDef;
    4142
    4243                [STAThread]
     
    5152                        config = Configuration.GetInstance();
    5253                        config.Load();
    53 
     54                       
    5455                        cpuStats = new CPUStatistics(81);
    5556                        memStats = new MemoryStatistics(81);
    5657                        pageio_count = 0;
     58                        // XXX: ‘Ώˆ•û–@‚ªƒAƒŒ‚·‚¬‚È‚Ì‚ð‰½‚Æ‚©‚·‚é
     59                        try
     60                        {
     61                                // ŽŽ‚µ‚ɃJƒEƒ“ƒ^‚ðŽÀs‚µ‚Ä‚Ý‚é
     62                                cpuStats.Update();
     63                        }
     64                        catch (System.ComponentModel.Win32Exception e)
     65                        {
     66                                // ƒ_ƒ‚¾‚Á‚½‚̂ŃpƒtƒH[ƒ}ƒ“ƒXƒJƒEƒ“ƒ^‚ðŽg‚í‚È‚¢•û–@‚Ö
     67                                cpuStats = new CPUStatisticsGetSystemTime(61);
     68                                memStats = new MemoryStatisticsPSAPI(61);
     69                        }
    5770
    5871                        updateTimer = new System.Windows.Forms.Timer();
     
    125138                        if (!result)
    126139                        {
    127                                 string path = Path.Combine(Application.StartupPath, "default.plist");
     140                                string path = Path.Combine(Application.StartupPath, "default.mcface");
    128141
    129142                                if (!LoadFaceDefine(path))
     
    190203                                return false;
    191204                        }
     205                       
     206                        curFaceDef = newFaceDef;
    192207
    193208                        if (patternWindow != null)
     
    269284                        patternWindow.TransparentMouseMessage = config.TransparentMouseMessage;
    270285
    271                         LoadFaceDefine(config.FaceDefPath);
     286                        //LoadFaceDefine(config.FaceDefPath);
     287                        patternWindow.FaceDef = curFaceDef;
    272288
    273289                        patternWindow.Show();
  • trunk/MacFaceFloat/PatternWindow.cs

    r43 r73  
    8080                        Graphics g = this.Graphics;
    8181                        g.Clear(Color.FromArgb(0, 0, 0, 0));
     82                        g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
    8283                        curFaceDef.DrawPatternImage(g, curSuite, curPattern, curMarkers, patternSize);
    8384                        base.Refresh();
  • trunk/MacFaceLibrary/CPUStatistics.cs

    r61 r73  
    55{
    66        /// <summary>
    7         /// CPUStats ‚ÌŠT—v‚Ìà–¾‚Å‚·B
     7        /// CPUStats nngY
    88        /// </summary>
    99        public class CPUStatistics
     
    7171                }
    7272
    73                 protected CPUUsage NextValue()
     73                protected virtual CPUUsage NextValue()
    7474                {
    7575                        int user   = (int)userCounter.NextValue();
  • trunk/MacFaceLibrary/MacFaceLibrary.csproj

    r61 r73  
    105105                />
    106106                <File
     107                    RelPath = "CPUStatisticsGetSystemTime.cs"
     108                    SubType = "Code"
     109                    BuildAction = "Compile"
     110                />
     111                <File
    107112                    RelPath = "CPUUsage.cs"
    108113                    SubType = "Code"
     
    121126                <File
    122127                    RelPath = "MemoryStatistics.cs"
     128                    SubType = "Code"
     129                    BuildAction = "Compile"
     130                />
     131                <File
     132                    RelPath = "MemoryStatisticsPSAPI.cs"
    123133                    SubType = "Code"
    124134                    BuildAction = "Compile"
  • trunk/MacFaceLibrary/MemoryStatistics.cs

    r61 r73  
    55{
    66        /// <summary>
    7         /// MemoryStatistics ‚ÌŠT—v‚Ìà–¾‚Å‚·B
     7        /// MemoryStatistics nngY
    88        /// </summary>
    99        public class MemoryStatistics
     
    110110                }
    111111
    112                 public ulong CommitLimit
     112                public virtual ulong CommitLimit
    113113                {
    114114                        get { return (ulong)commitLimitCounter.NextValue(); }
     
    124124                }
    125125
    126                 protected MemoryUsage NextValue()
     126                protected virtual MemoryUsage NextValue()
    127127                {
    128128                        int available      = (int)availableCounter.NextValue();
  • trunk/MacFaceLibrary/PropertyList.cs

    r8 r73  
    2525                        reader.XmlResolver = null;
    2626                        doc.Load(reader);
     27                        reader.Close();
    2728
    2829                        return ReadDictionary(doc.DocumentElement.FirstChild);
Note: See TracChangeset for help on using the changeset viewer.