2 Commits

Author SHA1 Message Date
themixedupstuff aaa79d1878 Add Image member to image brushes. 2026-03-21 20:05:06 +03:00
themixedupstuff f9e374db50 Fix double initialization bug. 2026-03-21 20:04:50 +03:00
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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;
}
+1 -1
View File
@@ -70,7 +70,7 @@ namespace Dashboard.Pal
CancellationToken = token;
CancellationToken.Value.Register(() => Quit = true);
InitializeInternal();
Initialize();
while (!Quit && !token.IsCancellationRequested)
{