mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Anime Matrix hibernate wake-up tweaks
This commit is contained in:
@@ -80,7 +80,7 @@ namespace GHelper.AnimeMatrix
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wakeUp && AppConfig.ContainsModel("401")) device.WakeUp();
|
if (wakeUp) device.WakeUp();
|
||||||
|
|
||||||
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
|
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ namespace GHelper.AnimeMatrix.Communication.Platform
|
|||||||
HidDevice = DeviceList.Local
|
HidDevice = DeviceList.Local
|
||||||
.GetHidDevices(vendorId, productId)
|
.GetHidDevices(vendorId, productId)
|
||||||
.First(x => x.GetMaxFeatureReportLength() == maxFeatureReportLength);
|
.First(x => x.GetMaxFeatureReportLength() == maxFeatureReportLength);
|
||||||
|
|
||||||
|
Logger.WriteLine("Matrix Device: " + HidDevice.DevicePath);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ namespace GHelper.UI
|
|||||||
{
|
{
|
||||||
var parms = base.CreateParams;
|
var parms = base.CreateParams;
|
||||||
parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN
|
parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN
|
||||||
|
parms.ClassStyle &= ~0x00020000;
|
||||||
return parms;
|
return parms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user