diff options
Diffstat (limited to 'src/img')
-rw-r--r-- | src/img/painter.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/img/painter.nim b/src/img/painter.nim index 8296b744..d52aaff1 100644 --- a/src/img/painter.nim +++ b/src/img/painter.nim @@ -152,8 +152,8 @@ proc getCharBmp(u: uint32): Bitmap = if cu == u: return bmp # Unifont glyphs start at x: 32, y: 64, and are of 8x16/16x16 size - let gx = uint64(32 + 16 * (u mod 0xFF)) - let gy = uint64(64 + 16 * (u div 0xFF)) + let gx = uint64(32 + 16 * (u mod 0x100)) + let gy = uint64(64 + 16 * (u div 0x100)) var fullwidth = false const white = rgba(255, 255, 255, 255) block loop: |