LED visualizer - Don't attempt to render really tiny LEDs

This commit is contained in:
SpoinkyNL committed 2020-06-02 22:55:25 +02:00
1 parent 1bcee06cb2
commit 72485e5d71
1 file changed
+4
@@ -36,6 +36,10 @@ namespace Artemis.UI.Shared.Controls
private void CreateLedGeometry() private void CreateLedGeometry()
{ {
// The minimum required size for geometry to be created
if (Led.RgbLed.Size.Width < 2 || Led.RgbLed.Size.Height < 2)
return;
switch (Led.RgbLed.Shape) switch (Led.RgbLed.Shape)
{ {
case Shape.Custom: case Shape.Custom: