mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
LED visualizer - Don't attempt to render really tiny LEDs
This commit is contained in:
1 parent
f5a937fd7a
commit
22cb65c800
1 file changed
+4
@@ -36,6 +36,10 @@ namespace Artemis.UI.Shared.Controls
|
||||
|
||||
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)
|
||||
{
|
||||
case Shape.Custom:
|
||||
|
||||
Reference in new issue
Block a user