From b24b8a3869af38fc74a2bb9b66cb9e9ed392fa91 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sat, 9 Dec 2023 17:41:08 -0800 Subject: [PATCH] update TextBatch Add call --- lib/WellspringCS | 2 +- src/Graphics/Font/TextBatch.cs | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/WellspringCS b/lib/WellspringCS index 9d62a80..6e98795 160000 --- a/lib/WellspringCS +++ b/lib/WellspringCS @@ -1 +1 @@ -Subproject commit 9d62a80dc7d5f339d5384bfb4d2954087151409c +Subproject commit 6e9879505978c6a7f05bc8ee1145587703ede0bf diff --git a/src/Graphics/Font/TextBatch.cs b/src/Graphics/Font/TextBatch.cs index d492626..390727c 100644 --- a/src/Graphics/Font/TextBatch.cs +++ b/src/Graphics/Font/TextBatch.cs @@ -45,10 +45,7 @@ namespace MoonWorks.Graphics.Font public unsafe bool Add( string text, - float x, - float y, int pixelSize, - float depth, Color color, HorizontalAlignment horizontalAlignment = HorizontalAlignment.Left, VerticalAlignment verticalAlignment = VerticalAlignment.Baseline @@ -64,12 +61,9 @@ namespace MoonWorks.Graphics.Font { System.Text.Encoding.UTF8.GetBytes(chars, text.Length, StringBytes, byteCount); - var result = Wellspring.Wellspring_Draw( + var result = Wellspring.Wellspring_AddToTextBatch( Handle, - x, - y, pixelSize, - depth, new Wellspring.Color { R = color.R, G = color.G, B = color.B, A = color.A }, (Wellspring.HorizontalAlignment) horizontalAlignment, (Wellspring.VerticalAlignment) verticalAlignment,