From 298d8c98ae6717a7ead369bdaaa89ef26e30687e Mon Sep 17 00:00:00 2001 From: lmp Date: Wed, 21 Aug 2024 10:25:29 +0200 Subject: [PATCH] assets: move `Image` `channels` field down a bit to minimize patch size --- lib/assets.v | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/assets.v b/lib/assets.v index c9b7e5f..82aae78 100644 --- a/lib/assets.v +++ b/lib/assets.v @@ -699,14 +699,15 @@ fn (mut a Asset) to_image(opt ImageOptions) !Image { } mut image := Image{ - asset: a - opt: opt - width: stb_img.width - height: stb_img.height + asset: a + opt: opt + width: stb_img.width + height: stb_img.height + mipmaps: opt.mipmaps + ready: stb_img.ok + kind: .png // TODO stb_img.ext + // channels: stb_img.use_channels - mipmaps: opt.mipmaps - ready: stb_img.ok - kind: .png // TODO stb_img.ext } // Sokol image