Split device views/VMs for surface and profile editors

Added support for devices without images to the surface editor
This commit is contained in:
SpoinkyNL committed 2019-10-12 18:00:21 +02:00
1 parent 516e1d6a13
commit 44549f86aa
13 files changed
+334 -109

No files matched your search

+7 -3
View File
@@ -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;
}
}
}