From 7f53ecde3a481dff3eb4e69f3cfba36d0bece7f9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 23 Feb 2022 19:37:10 +0100 Subject: flush --- atlas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atlas.cpp') diff --git a/atlas.cpp b/atlas.cpp index 4528393f..84ae2921 100644 --- a/atlas.cpp +++ b/atlas.cpp @@ -27,7 +27,7 @@ std::array atlas_texture::texcoords_for_id(int id_) const CORRADE_INTERNAL_ASSERT(id_ >= 0 && id_ < dims_.product()); Vector2i id = { id_ % dims_[0], id_ / dims_[0] }; auto p0 = Vector2(id * tile_size_) / Vector2(size_); - auto p1 = (Vector2(Vector2i{1,1} * tile_size_) - Vector2{0.5f, 0.5f}) / Vector2(size_); + auto p1 = Vector2(Vector2i{1,1} * tile_size_) / Vector2(size_); auto x0 = p0.x(), x1 = p1.x(), y0 = p0.y(), y1 = p1.y(); return {{ { x0+x1, y0+y1 }, // bottom right -- cgit v1.2.3