fmt: fix alignment of struct init fields (#22025)

This commit is contained in:
yuyi 2024-08-11 14:11:24 +08:00 committed by GitHub
parent 99da5726db
commit c51d30bf53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
671 changed files with 18817 additions and 18787 deletions

View file

@ -9,7 +9,7 @@ __global g_desc C.sapp_desc
pub fn create_desc() gfx.Desc {
return gfx.Desc{
environment: glue_environment()
environment: glue_environment()
image_pool_size: 1000
}
}
@ -17,7 +17,7 @@ pub fn create_desc() gfx.Desc {
// create_default_pass creates a default `gfx.Pass` compatible with `sapp` and `sokol.gfx.begin_pass/1`.
pub fn create_default_pass(action gfx.PassAction) gfx.Pass {
return gfx.Pass{
action: action
action: action
swapchain: glue_swapchain()
}
}

View file

@ -17,9 +17,9 @@ pub fn screenshot_window() &Screenshot {
img_pixels := unsafe { &u8(malloc(img_size)) }
C.v_sapp_gl_read_rgba_pixels(0, 0, img_width, img_height, img_pixels)
return &Screenshot{
width: img_width
width: img_width
height: img_height
size: img_size
size: img_size
pixels: img_pixels
}
}