Skip to content

Commit

Permalink
gg: mark create_image_with_size as deprecated (image resizing is done…
Browse files Browse the repository at this point in the history
… by `stbi.resize_uint8/3`, with a different fn signature) (#23580)
  • Loading branch information
mike-ward authored Jan 26, 2025
1 parent 5bfea9d commit 1d9aa88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vlib/gg/image.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d9aa88

Please sign in to comment.