Skip to content

Commit

Permalink
fix: compilation issue on i386 and nim 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos authored and ftsf committed Jul 9, 2024
1 parent 60dc2f3 commit af99dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nico.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ proc glyph*(c: Rune, x,y: Pint, scale: Pint = 1): Pint =
if not currentFont.rects.hasKey(c):
return
let src: Rect = currentFont.rects[c]
let dst: Rect = (x.int, y.int, src.w * scale, src.h * scale)
let dst: Rect = (x.int, y.int, (src.w * scale).int, (src.h * scale).int)
try:
fontBlit(currentFont, src, dst, currentColor)
except IndexDefect:
Expand Down

0 comments on commit af99dd6

Please sign in to comment.