mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +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
@@ -11,6 +11,7 @@ using Artemis.UI.Shared.Services.Models;
|
||||
using Ninject;
|
||||
using Ninject.Parameters;
|
||||
using Serilog;
|
||||
using SkiaSharp;
|
||||
using SkiaSharp.Views.WPF;
|
||||
using Stylet;
|
||||
|
||||
@@ -350,7 +351,10 @@ namespace Artemis.UI.Shared.Services
|
||||
|
||||
public List<ArtemisLed> GetLedsInRectangle(Rect rect)
|
||||
{
|
||||
return _rgbService.EnabledDevices.SelectMany(d => d.Leds).Where(led => led.AbsoluteRectangle.IntersectsWith(rect.ToSKRect())).ToList();
|
||||
return _rgbService.EnabledDevices
|
||||
.SelectMany(d => d.Leds)
|
||||
.Where(led => led.AbsoluteRectangle.IntersectsWith(SKRectI.Round(rect.ToSKRect())))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
#region Copy/paste
|
||||
|
||||
Reference in new issue
Block a user