Layer properties - Improved error messaging

Profile editor - Fixed layer creation in selection tool not initializing the layer
Device visualizer - Better handle missing images
This commit is contained in:
SpoinkyNL committed 2020-06-02 22:30:11 +02:00
1 parent f1cbfb36e9
commit f5a937fd7a
10 files changed
+46 -24

No files matched your search

@@ -141,8 +141,8 @@ namespace Artemis.UI.Shared.Controls
var drawingImage = new DrawingImage(opacityDrawingGroup);
var image = new Image {Source = drawingImage};
var bitmap = new RenderTargetBitmap(
(int) (opacityDrawingGroup.Bounds.Width * 2.5),
(int) (opacityDrawingGroup.Bounds.Height * 2.5),
Math.Max(1, (int) (opacityDrawingGroup.Bounds.Width * 2.5)),
Math.Max(1, (int) (opacityDrawingGroup.Bounds.Height * 2.5)),
96,
96,
PixelFormats.Pbgra32
@@ -181,7 +181,6 @@ namespace Artemis.UI.Shared.Controls
deviceVisualizerLed.RenderColor(drawingContext, false);
}
drawingContext.Close();
}
}