mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Merge branch 'development' of https://github.com/SpoinkyNL/Artemis.git
This commit is contained in:
commit
3bb15f70c3
@ -118,7 +118,7 @@ namespace Artemis.DeviceProviders.Corsair
|
||||
}
|
||||
|
||||
_keyboardBrush.Image = image;
|
||||
_keyboard.Update(true);
|
||||
_keyboard.Update();
|
||||
|
||||
image.Dispose();
|
||||
}
|
||||
|
||||
@ -38,8 +38,12 @@ namespace Artemis.Profiles.Layers.Types.AmbientLight.AmbienceCreator
|
||||
double widthPixels = effectiveSourceWidth / (double)targetWidth;
|
||||
double heightPixels = relevantSourceHeight / (double)targetHeight;
|
||||
|
||||
if (widthPixels <= 0 || heightPixels <= 0 || (relevantSourceHeight + relevantOffsetTop > sourceHeight) || effectiveSourceWidth > sourceWidth)
|
||||
if (widthPixels <= 0 || heightPixels <= 0 || (relevantSourceHeight + relevantOffsetTop > sourceHeight) ||
|
||||
effectiveSourceWidth > sourceWidth)
|
||||
{
|
||||
colors = colors.ExtendHeight(targetHeight);
|
||||
return colors.ToBGRArray();
|
||||
}
|
||||
|
||||
int increment = Math.Max(1, Math.Min(20, settings.Downsampling));
|
||||
for (int y = 0; y < relevantSourceHeight; y += increment)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user