some cleanup
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ public class Program
|
||||
public static void Main()
|
||||
{
|
||||
SDL3Window window = new SDL3Window("SDL3 Testing Suite", 100, 100, 1280, 720);
|
||||
window.RenderCallback = () =>
|
||||
window.RenderCallback += () =>
|
||||
{
|
||||
ImGuiViewportPtr viewport = ImGui.GetMainViewport();
|
||||
ImGui.SetNextWindowPos(viewport.WorkPos);
|
||||
@@ -65,7 +65,7 @@ public class Program
|
||||
fontName = string.IsNullOrEmpty(fontName) ? _font.FontId.ToString() : fontName;
|
||||
if (!_initialized || change)
|
||||
{
|
||||
if (!GlyphsByName.TryGetValue(fontName, out List<uint> glyphs))
|
||||
if (!GlyphsByName.TryGetValue(fontName, out List<uint>? glyphs))
|
||||
{
|
||||
glyphs = new List<uint>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user