mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Rendering - Sovled inconsistencies between software and Vulkan rendering
LED sampling - Improved LED sampling on <100% scale
This commit is contained in:
1 parent
a0faeb21fd
commit
eb7c89d4ad
15 files changed
+158
-76
No files matched your search
@@ -8,8 +8,8 @@ namespace Artemis.Core
|
||||
/// </summary>
|
||||
public class ArtemisLed : CorePropertyChanged
|
||||
{
|
||||
private SKRect _absoluteRectangle;
|
||||
private SKRect _rectangle;
|
||||
private SKRectI _absoluteRectangle;
|
||||
private SKRectI _rectangle;
|
||||
|
||||
internal ArtemisLed(Led led, ArtemisDevice device)
|
||||
{
|
||||
@@ -31,7 +31,7 @@ namespace Artemis.Core
|
||||
/// <summary>
|
||||
/// Gets the rectangle covering the LED positioned relative to the<see cref="Device" />
|
||||
/// </summary>
|
||||
public SKRect Rectangle
|
||||
public SKRectI Rectangle
|
||||
{
|
||||
get => _rectangle;
|
||||
private set => SetAndNotify(ref _rectangle, value);
|
||||
@@ -40,7 +40,7 @@ namespace Artemis.Core
|
||||
/// <summary>
|
||||
/// Gets the rectangle covering the LED
|
||||
/// </summary>
|
||||
public SKRect AbsoluteRectangle
|
||||
public SKRectI AbsoluteRectangle
|
||||
{
|
||||
get => _absoluteRectangle;
|
||||
private set => SetAndNotify(ref _absoluteRectangle, value);
|
||||
@@ -59,8 +59,8 @@ namespace Artemis.Core
|
||||
|
||||
internal void CalculateRectangles()
|
||||
{
|
||||
Rectangle = RgbLed.Boundary.ToSKRect();
|
||||
AbsoluteRectangle = RgbLed.AbsoluteBoundary.ToSKRect();
|
||||
Rectangle = RgbLed.Boundary.ToSKRectI();
|
||||
AbsoluteRectangle = RgbLed.AbsoluteBoundary.ToSKRectI();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user