From f9e374db50fe95d7d3384362166e2a5e097ef9c6 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sat, 21 Mar 2026 20:04:50 +0300 Subject: [PATCH 1/2] Fix double initialization bug. --- Dashboard.Common/Pal/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dashboard.Common/Pal/Application.cs b/Dashboard.Common/Pal/Application.cs index ec14659..e8fdaaa 100644 --- a/Dashboard.Common/Pal/Application.cs +++ b/Dashboard.Common/Pal/Application.cs @@ -70,7 +70,7 @@ namespace Dashboard.Pal CancellationToken = token; CancellationToken.Value.Register(() => Quit = true); - InitializeInternal(); + Initialize(); while (!Quit && !token.IsCancellationRequested) { From aaa79d18787e0bb42714d4acc113c3183f4a87e9 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sat, 21 Mar 2026 20:05:06 +0300 Subject: [PATCH 2/2] Add Image member to image brushes. --- Dashboard.Common/Drawing/Brush.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dashboard.Common/Drawing/Brush.cs b/Dashboard.Common/Drawing/Brush.cs index 9cf3a7f..37a80fd 100644 --- a/Dashboard.Common/Drawing/Brush.cs +++ b/Dashboard.Common/Drawing/Brush.cs @@ -14,11 +14,13 @@ namespace Dashboard.Drawing public class ImageBrush(Image image) : Brush { + public Image Image { get; set; } = image; public Box2d TextureCoordinates { get; set; } = new Box2d(0, 0, 1, 1); } public class NinePatchImageBrush(Image image) : Brush { + public Image Image { get; set; } = image; public Box2d CenterCoordinates { get; set; } = new Box2d(0, 0, 1, 1); public Vector4 Extents { get; set; } = Vector4.Zero; }