mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue