From 8278a080aff87ff0c8b41e65d33519f2c06abe6f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 23 Sep 2025 18:09:09 +0200 Subject: [PATCH] fix: actually use staging_size in WindowState.generateGlyph --- src/win32/d3d11.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/d3d11.zig b/src/win32/d3d11.zig index 529ba1c..b1b88cf 100644 --- a/src/win32/d3d11.zig +++ b/src/win32/d3d11.zig @@ -196,7 +196,7 @@ pub const WindowState = struct { const coord = coordFromCellPos(font.cell_size, pos); var staging_size = font.cell_size; staging_size.x = if (right_half) staging_size.x * 2 else staging_size.x; - const staging = global.staging_texture.update(font.cell_size); + const staging = global.staging_texture.update(staging_size); var utf8_buf: [7]u8 = undefined; const utf8_len: u3 = std.unicode.utf8Encode(codepoint, &utf8_buf) catch |e| std.debug.panic( "todo: handle invalid codepoint {} (0x{0x}) ({s})",