mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Split device views/VMs for surface and profile editors
Added support for devices without images to the surface editor
This commit is contained in:
1 parent
516e1d6a13
commit
44549f86aa
13 files changed
+334
-109
No files matched your search
@@ -43,10 +43,14 @@ namespace Artemis.Core.RGB.NET
|
||||
public Color GetPixel(int x, int y)
|
||||
{
|
||||
var index = x + y * Width;
|
||||
var col = Bits[index];
|
||||
var result = Color.FromArgb(col);
|
||||
if (index >= 0 && index - 1 <= Bits.Length)
|
||||
{
|
||||
var col = Bits[index];
|
||||
var result = Color.FromArgb(col);
|
||||
|
||||
return result;
|
||||
return result;
|
||||
}
|
||||
return Color.Black;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user