From f052d322b7e536e239136bc001398034ed58e56b Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Thu, 30 Apr 2026 15:34:06 +0200 Subject: [PATCH] examples: remove unused variable/function in viewer (#27037) --- examples/viewer/view.v | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/examples/viewer/view.v b/examples/viewer/view.v index 52624de57..e7f255d74 100644 --- a/examples/viewer/view.v +++ b/examples/viewer/view.v @@ -40,7 +40,7 @@ const win_width = 800 const win_height = 800 const bg_color = gg.black const pi_2 = 3.14159265359 / 2.0 -const uv = [f32(0), 0, 1, 0, 1, 1, 0, 1]! // used for zoom icon during rotations +// const uv = [f32(0), 0, 1, 0, 1, 1, 0, 1]! // used for zoom icon during rotations const text_drop_files = 'Drop here some images/folder/zip to navigate in the pics' const text_scanning = 'Scanning...' @@ -144,17 +144,6 @@ fn destroy_texture(sg_img gfx.Image) { gfx.destroy_image(sg_img) } -// Use only if: .dynamic is enabled -fn update_text_texture(sg_img gfx.Image, w int, h int, buf &u8) { - sz := w * h * 4 - mut tmp_sbc := gfx.ImageData{} - tmp_sbc.subimage[0][0] = gfx.Range{ - ptr: buf - size: usize(sz) - } - gfx.update_image(sg_img, &tmp_sbc) -} - /****************************************************************************** * * Memory buffer -- 2.39.5