From a5ddc2eb7c8e98bdd7b84a4617031af25472738c Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 25 Feb 2021 14:16:19 +0300 Subject: [PATCH] Fix default 9x12 font texcoords --- libs/ui/source/default_fonts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ui/source/default_fonts.cpp b/libs/ui/source/default_fonts.cpp index dd1e3dfb..1cea2568 100644 --- a/libs/ui/source/default_fonts.cpp +++ b/libs/ui/source/default_fonts.cpp @@ -24,8 +24,8 @@ namespace psemek::ui for (char32_t c = range.begin; c < range.end; ++c) { int const row = 16; - int x = (c - range.begin) / row; - int y = (c - range.begin) % row; + int x = (c - range.begin) % row; + int y = (c - range.begin) / row; geom::box b; b[0].min = x * 11 + 1;