mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
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:
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user