From 1d9aa88ca55d71fcbb586d894a45bce8aa6459a7 Mon Sep 17 00:00:00 2001 From: Mike Ward Date: Sun, 26 Jan 2025 00:04:17 -0600 Subject: [PATCH] gg: mark create_image_with_size as deprecated (image resizing is done by `stbi.resize_uint8/3`, with a different fn signature) (#23580) --- vlib/gg/image.c.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/gg/image.c.v b/vlib/gg/image.c.v index 0c0935983b..1f74a3e045 100644 --- a/vlib/gg/image.c.v +++ b/vlib/gg/image.c.v @@ -199,6 +199,7 @@ pub fn (mut img Image) update_pixel_data(buf &u8) { // `width` x `height` dimension. // // TODO: copypasta +@[deprecated] pub fn (mut ctx Context) create_image_with_size(file string, width int, height int) Image { if !gfx.is_valid() { // Sokol is not initialized yet, add stbi object to a queue/cache