ci: fix some of v test-cleancode 2

This commit is contained in:
Delyan Angelov 2021-04-05 20:55:03 +03:00
parent fec89c7efb
commit c0e2b9b1e2
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
5 changed files with 8 additions and 8 deletions

View file

@ -119,7 +119,7 @@ fn create_image(file string) Image {
return img
}
pub fn (mut ctx Context) create_image_from_memory(buf byteptr, bufsize int) Image {
pub fn (mut ctx Context) create_image_from_memory(buf &byte, bufsize int) Image {
stb_img := stbi.load_from_memory(buf, bufsize) or { return Image{} }
mut img := Image{
width: stb_img.width