Skip to content

Commit

Permalink
assets: move Image channels field down a bit to minimize patch size
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Aug 21, 2024
1 parent 9eed6dc commit 298d8c9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/assets.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 298d8c9

Please sign in to comment.