Skip to content

Commit 1d9aa88

Browse files
authored
gg: mark create_image_with_size as deprecated (image resizing is done by stbi.resize_uint8/3, with a different fn signature) (#23580)
1 parent 5bfea9d commit 1d9aa88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vlib/gg/image.c.v

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

0 commit comments

Comments
 (0)