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

@ -24,21 +24,21 @@ const width = 50
fn main() {
mut game := &Game{
dx: 2
dy: 2
height: window_height
width: window_width
dx: 2
dy: 2
height: window_height
width: window_width
draw_fn: 0
}
game.gg = gg.new_context(
width: window_width
height: window_height
font_size: 20
user_data: game
window_title: 'Hot code reloading demo'
width: window_width
height: window_height
font_size: 20
user_data: game
window_title: 'Hot code reloading demo'
create_window: true
frame_fn: frame
bg_color: gx.white
frame_fn: frame
bg_color: gx.white
)
// window.onkeydown(key_down)
println('Starting the game loop...')

View file

@ -16,15 +16,15 @@ mut:
fn main() {
mut context := &Context{}
context.gg = gg.new_context(
width: size
height: size
font_size: 20
user_data: context
window_title: 'Graph builder'
width: size
height: size
font_size: 20
user_data: context
window_title: 'Graph builder'
create_window: true
frame_fn: frame
resizable: true
bg_color: gx.white
frame_fn: frame
resizable: true
bg_color: gx.white
)
context.gg.run()
}