aboutsummaryrefslogtreecommitdiff
path: root/src/draw.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.odin')
-rw-r--r--src/draw.odin6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/draw.odin b/src/draw.odin
index d821a10..b15853b 100644
--- a/src/draw.odin
+++ b/src/draw.odin
@@ -121,6 +121,8 @@ draw_texture_quad :: proc(
quad.size.y *= -1
}
+ position := linalg.round(position)
+
rl.DrawTexturePro(
img,
transmute(rl.Rectangle)quad,
@@ -131,7 +133,9 @@ draw_texture_quad :: proc(
quad.size.y * scale.y,
},
offset,
- rotation,
+ // rotation,
+ math.round(rotation),
+ // math.round(rotation / 10) * 10,
_color_to_rl(renderer.tint),
)
}