mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 09:43:46 +00:00
Slight folder performance tweak
This commit is contained in:
parent
7a50249335
commit
e0951ca0f5
@ -78,12 +78,9 @@ namespace Artemis.Core.Models.Profile
|
|||||||
|
|
||||||
public override void Render(double deltaTime, SKCanvas canvas, SKImageInfo canvasInfo)
|
public override void Render(double deltaTime, SKCanvas canvas, SKImageInfo canvasInfo)
|
||||||
{
|
{
|
||||||
if (!Enabled)
|
if (!Enabled || Path == null || !Children.Any(c => c.Enabled))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Path == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (_folderBitmap == null)
|
if (_folderBitmap == null)
|
||||||
_folderBitmap = new SKBitmap(new SKImageInfo((int) Path.Bounds.Width, (int) Path.Bounds.Height));
|
_folderBitmap = new SKBitmap(new SKImageInfo((int) Path.Bounds.Width, (int) Path.Bounds.Height));
|
||||||
else if (_folderBitmap.Info.Width != (int) Path.Bounds.Width || _folderBitmap.Info.Height != (int) Path.Bounds.Height)
|
else if (_folderBitmap.Info.Width != (int) Path.Bounds.Width || _folderBitmap.Info.Height != (int) Path.Bounds.Height)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user