alex

/

v Public
0 Issues 1 Contributor 0 Releases 4 Branches
Additions: 12 Deletions: 2 View patch
1 }
2 x := config.img_rect.x
3 y := config.img_rect.y
4- C.darwin_draw_image(x, ctx.height - (y + config.img_rect.height), config.img_rect.width,
5- config.img_rect.height, img)
6+ width := if config.img_rect.width == 0 {
7+ f32(img.width)
8+ } else {
9+ config.img_rect.width
10+ }
11+ height := if config.img_rect.height == 0 {
12+ f32(img.height)
13+ } else {
14+ config.img_rect.height
15+ }
16+ C.darwin_draw_image(x, ctx.height - (y + config.img_rect.height), width,
17+ height, img)
18 return
19 }
20 }
21