Skip to content

Commit

Permalink
draw2D: run vfmt over files
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Mar 13, 2024
1 parent a3f7f79 commit 76ad3e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/draw2d.image.b.v
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ pub fn (i Draw2DImage) draw_region(src Rect, dst Rect) {
mut u1 := f32(1.0)
mut v1 := f32(1.0)

u0 = mth.clamp(utils.remap(used_dst.x, 0, w, 0, 1),0,1)
v0 = mth.clamp(utils.remap(used_dst.y, 0, h, 0, 1),0,1)
u1 = mth.clamp(utils.remap(used_dst.x + used_dst.width, 0, w, 0, 1),0,1)
v1 = mth.clamp(utils.remap(used_dst.y + used_dst.height, 0, h, 0, 1),0,1)
u0 = mth.clamp(utils.remap(used_dst.x, 0, w, 0, 1), 0, 1)
v0 = mth.clamp(utils.remap(used_dst.y, 0, h, 0, 1), 0, 1)
u1 = mth.clamp(utils.remap(used_dst.x + used_dst.width, 0, w, 0, 1), 0, 1)
v1 = mth.clamp(utils.remap(used_dst.y + used_dst.height, 0, h, 0, 1), 0, 1)

// eprintln('dst: ${dst.x},${dst.y},${dst.width},${dst.height} u0: $u0, v0: $v0, u1: $u1, v1: $v1')

Expand Down

0 comments on commit 76ad3e7

Please sign in to comment.