mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42: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
|
@ -24,12 +24,12 @@ const limit_thickness = 3
|
|||
|
||||
const text_cfg = gx.TextCfg{
|
||||
align: .left
|
||||
size: text_size
|
||||
size: text_size
|
||||
color: gx.rgb(0, 0, 0)
|
||||
}
|
||||
const over_cfg = gx.TextCfg{
|
||||
align: .left
|
||||
size: text_size
|
||||
size: text_size
|
||||
color: gx.white
|
||||
}
|
||||
|
||||
|
@ -160,14 +160,14 @@ fn main() {
|
|||
}
|
||||
|
||||
game.gg = gg.new_context(
|
||||
bg_color: gx.white
|
||||
width: win_width
|
||||
height: win_height
|
||||
create_window: true
|
||||
window_title: 'V Tetris' //
|
||||
user_data: game
|
||||
frame_fn: frame
|
||||
event_fn: on_event
|
||||
bg_color: gx.white
|
||||
width: win_width
|
||||
height: win_height
|
||||
create_window: true
|
||||
window_title: 'V Tetris' //
|
||||
user_data: game
|
||||
frame_fn: frame
|
||||
event_fn: on_event
|
||||
html5_canvas_name: 'canvas'
|
||||
)
|
||||
game.init_game()
|
||||
|
|
|
@ -25,12 +25,12 @@ const limit_thickness = 3
|
|||
|
||||
const text_cfg = gx.TextCfg{
|
||||
align: .left
|
||||
size: text_size
|
||||
size: text_size
|
||||
color: gx.rgb(0, 0, 0)
|
||||
}
|
||||
const over_cfg = gx.TextCfg{
|
||||
align: .left
|
||||
size: text_size
|
||||
size: text_size
|
||||
color: gx.white
|
||||
}
|
||||
|
||||
|
@ -162,15 +162,15 @@ fn main() {
|
|||
fpath = 'fonts/RobotoMono-Regular.ttf'
|
||||
}
|
||||
game.gg = gg.new_context(
|
||||
bg_color: gx.white
|
||||
width: win_width
|
||||
height: win_height
|
||||
bg_color: gx.white
|
||||
width: win_width
|
||||
height: win_height
|
||||
create_window: true
|
||||
window_title: 'V Tetris'
|
||||
user_data: game
|
||||
frame_fn: frame
|
||||
event_fn: on_event
|
||||
font_path: fpath // wait_events: true
|
||||
window_title: 'V Tetris'
|
||||
user_data: game
|
||||
frame_fn: frame
|
||||
event_fn: on_event
|
||||
font_path: fpath // wait_events: true
|
||||
)
|
||||
game.init_game()
|
||||
game.gg.run() // Run the render loop in the main thread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue