diff --git a/app/CustomControls.cs b/app/CustomControls.cs index 211a63c4..5707676b 100644 --- a/app/CustomControls.cs +++ b/app/CustomControls.cs @@ -191,8 +191,10 @@ namespace CustomControls { dc = m.WParam; } + var rgn = CreateRectRgn(innerInnerBorder.Left, innerInnerBorder.Top, innerInnerBorder.Right, innerInnerBorder.Bottom); + SelectClipRgn(dc, rgn); DefWndProc(ref m); DeleteObject(rgn); diff --git a/app/Fans.cs b/app/Fans.cs index 80de84b3..80109b4f 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -335,6 +335,8 @@ namespace GHelper old = curve[i]; } + SaveProfile(series, device); + } void SaveProfile(Series series, int device) diff --git a/app/Keyboard.Designer.cs b/app/Keyboard.Designer.cs index 7aa90940..26d95b8c 100644 --- a/app/Keyboard.Designer.cs +++ b/app/Keyboard.Designer.cs @@ -80,7 +80,7 @@ namespace GHelper // // textFNF4 // - textFNF4.Location = new Point(411, 176); + textFNF4.Location = new Point(415, 176); textFNF4.Name = "textFNF4"; textFNF4.PlaceholderText = "action"; textFNF4.Size = new Size(320, 39); @@ -93,6 +93,7 @@ namespace GHelper comboFNF4.Name = "comboFNF4"; comboFNF4.Size = new Size(312, 40); comboFNF4.TabIndex = 7; + comboFNF4.BorderColor = Color.White; // // labelFNF4 // @@ -105,7 +106,7 @@ namespace GHelper // // textM4 // - textM4.Location = new Point(411, 113); + textM4.Location = new Point(415, 113); textM4.Name = "textM4"; textM4.PlaceholderText = "action"; textM4.Size = new Size(320, 39); @@ -113,7 +114,7 @@ namespace GHelper // // textM3 // - textM3.Location = new Point(411, 54); + textM3.Location = new Point(415, 54); textM3.Name = "textM3"; textM3.PlaceholderText = "notepad /p \"file.txt\""; textM3.Size = new Size(320, 39); @@ -127,6 +128,8 @@ namespace GHelper comboM4.Name = "comboM4"; comboM4.Size = new Size(312, 40); comboM4.TabIndex = 3; + comboM4.BorderColor = Color.White; + // // labelM4 // @@ -145,6 +148,8 @@ namespace GHelper comboM3.Name = "comboM3"; comboM3.Size = new Size(312, 40); comboM3.TabIndex = 1; + comboM3.BorderColor = Color.White; + // // labelM3 // diff --git a/app/Settings.Designer.cs b/app/Settings.Designer.cs index ac04435f..93304ddb 100644 --- a/app/Settings.Designer.cs +++ b/app/Settings.Designer.cs @@ -380,7 +380,7 @@ namespace GHelper picturePerf.BackgroundImage = (Image)resources.GetObject("picturePerf.BackgroundImage"); picturePerf.BackgroundImageLayout = ImageLayout.Zoom; picturePerf.InitialImage = null; - picturePerf.Location = new Point(24, 20); + picturePerf.Location = new Point(24, 18); picturePerf.Margin = new Padding(4); picturePerf.Name = "picturePerf"; picturePerf.Size = new Size(32, 32); @@ -402,7 +402,7 @@ namespace GHelper // labelCPUFan.Anchor = AnchorStyles.Top | AnchorStyles.Right; labelCPUFan.Cursor = Cursors.Hand; - labelCPUFan.Location = new Point(384, 15); + labelCPUFan.Location = new Point(384, 18); labelCPUFan.Margin = new Padding(8, 0, 8, 0); labelCPUFan.Name = "labelCPUFan"; labelCPUFan.Size = new Size(400, 36); @@ -988,7 +988,7 @@ namespace GHelper // labelKeyboard.AutoSize = true; labelKeyboard.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - labelKeyboard.Location = new Point(60, 13); + labelKeyboard.Location = new Point(60, 14); labelKeyboard.Margin = new Padding(8, 0, 8, 0); labelKeyboard.Name = "labelKeyboard"; labelKeyboard.Size = new Size(210, 32); diff --git a/app/Settings.cs b/app/Settings.cs index cf8c0905..fc7109df 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -874,12 +874,6 @@ namespace GHelper public void SetPower() { - // fix for misbehaving bios PPTs on G513 - if (Program.config.ContainsModel("G513") && Program.config.getConfigPerf("auto_apply") != 1) - { - AutoFans(true); - } - int limit_total = Program.config.getConfigPerf("limit_total"); int limit_cpu = Program.config.getConfigPerf("limit_cpu"); @@ -948,6 +942,13 @@ namespace GHelper public void AutoPower(int delay = 0) { + // fix for misbehaving bios PPTs on G513 + if (Program.config.ContainsModel("G513") && Program.config.getConfigPerf("auto_apply") != 1) + { + AutoFans(true); + delay = 500; + } + customPower = 0; if (Program.config.getConfigPerf("auto_apply_power") == 1)