From ee3fbc68314865384d2a7d78a22221b5987979a4 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 7 Mar 2025 20:15:25 +0300 Subject: [PATCH] fix: incorrect canvas Y direction --- src/graphics/ui/elements/Canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/ui/elements/Canvas.cpp b/src/graphics/ui/elements/Canvas.cpp index dd69ce22..be3fc145 100644 --- a/src/graphics/ui/elements/Canvas.cpp +++ b/src/graphics/ui/elements/Canvas.cpp @@ -16,5 +16,5 @@ void gui::Canvas::draw(const DrawContext& pctx, const Assets& assets) { auto batch = pctx.getBatch2D(); batch->texture(mTexture.get()); - batch->rect(pos.x, pos.y, size.x, size.y, 0, 0, 0, {}, false, true, col); + batch->rect(pos.x, pos.y, size.x, size.y, 0, 0, 0, {}, false, false, col); }