mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
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:
parent
5bfea9d3e8
commit
1d9aa88ca5
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue