gg: mark create_image_with_size as deprecated (image resizing is done by stbi.resize_uint8/3, with a different fn signature) (#23580)

This commit is contained in:
Mike Ward 2025-01-26 00:04:17 -06:00 committed by GitHub
parent 5bfea9d3e8
commit 1d9aa88ca5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,6 +199,7 @@ pub fn (mut img Image) update_pixel_data(buf &u8) {
// `width` x `height` dimension. // `width` x `height` dimension.
// //
// TODO: copypasta // TODO: copypasta
@[deprecated]
pub fn (mut ctx Context) create_image_with_size(file string, width int, height int) Image { pub fn (mut ctx Context) create_image_with_size(file string, width int, height int) Image {
if !gfx.is_valid() { if !gfx.is_valid() {
// Sokol is not initialized yet, add stbi object to a queue/cache // Sokol is not initialized yet, add stbi object to a queue/cache