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;