X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Frender.cpp;h=be59d2357befaa1eae6481008e8852d8ae64617d;hb=a34fbcb0581056bd464158acfa30289a3e2c2c2d;hp=2b227422a48cb3b950390d73cf152350fcf7f716;hpb=376fc1fca87fcdd22dabadf6d01d245ef8c3cedd;p=blank.git diff --git a/src/graphics/render.cpp b/src/graphics/render.cpp index 2b22742..be59d23 100644 --- a/src/graphics/render.cpp +++ b/src/graphics/render.cpp @@ -101,8 +101,8 @@ bool Font::HasGlyph(Uint16 c) const noexcept { } -glm::tvec2 Font::TextSize(const char *text) const { - glm::tvec2 size; +glm::ivec2 Font::TextSize(const char *text) const { + glm::ivec2 size; if (TTF_SizeUTF8(handle, text, &size.x, &size.y) != 0) { throw std::runtime_error(TTF_GetError()); }