From 8f676eafae5fd6b4f29c0e2118e2dea7fd5a5ef3 Mon Sep 17 00:00:00 2001 From: Alex Taber Date: Tue, 4 Jun 2024 16:34:20 -0400 Subject: [PATCH] Fix preview regression introduced in df4c81c --- source/loading.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/loading.c b/source/loading.c index 80a7d65..2a81627 100644 --- a/source/loading.c +++ b/source/loading.c @@ -310,7 +310,7 @@ void load_icons_thread(void * void_arg) bool load_preview_from_buffer(char * row_pointers, u32 size, C2D_Image * preview_image, int * preview_offset, int height) { int width = (uint32_t)((size / 4) / height); - u32 tex_height = height > 512 ? 1024 : 512; + float tex_height = height > 512.0f ? 1024.0f : 512.0f; free_preview(*preview_image);