mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Device visualizer - Fixed a crash when a device has 0 width/height
This commit is contained in:
parent
f105a10e4d
commit
7bcac904fc
@ -136,6 +136,9 @@ namespace Artemis.UI.Shared
|
||||
return Size.Empty;
|
||||
|
||||
var deviceSize = MeasureDevice();
|
||||
if (deviceSize.Width <= 0 || deviceSize.Height <= 0)
|
||||
return Size.Empty;
|
||||
|
||||
return ResizeKeepAspect(deviceSize, availableSize.Width, availableSize.Height);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user