1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: fix sokol/particles to start up faster (#6610)

This commit is contained in:
Larpon 2020-10-13 12:16:51 +02:00 committed by GitHub
parent 28dea17065
commit 05ec32c331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ mut:
pub fn (mut s System) init(sc SystemConfig) {
for i := 0; i < sc.pool; i++ {
p := new(vec2.Vec2{f32(s.width) * 0.5, f32(s.height) * 0.5})
s.pool << p
s.bin << p
}
}