From 4bc0f0bcff97427ede4d241bd957ef6667822ff3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 30 Apr 2024 23:44:50 +0300 Subject: [PATCH] stbi: make LoadParams.desired_channels public --- vlib/stbi/stbi.c.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/stbi/stbi.c.v b/vlib/stbi/stbi.c.v index 718e741d3f..91935226cc 100644 --- a/vlib/stbi/stbi.c.v +++ b/vlib/stbi/stbi.c.v @@ -112,6 +112,7 @@ fn C.stbi_load_from_memory(buffer &u8, len int, x &int, y &int, channels_in_file @[params] pub struct LoadParams { +pub: // the number of channels you expect the image to have. // If set to 0 stbi will figure out the correct number of channels desired_channels int = C.STBI_rgb_alpha