From 76ad3e7fbb536651f5cb584124cfcda4eb876312 Mon Sep 17 00:00:00 2001 From: lmp Date: Wed, 13 Mar 2024 18:00:17 +0100 Subject: [PATCH] draw2D: run vfmt over files --- lib/draw2d.image.b.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/draw2d.image.b.v b/lib/draw2d.image.b.v index 6a8405b..0f6985d 100644 --- a/lib/draw2d.image.b.v +++ b/lib/draw2d.image.b.v @@ -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')