Skip to content

Commit 46c67a7

Browse files
Asmonielftsf
authored andcommitted
Remove wrong clipping area check in fontBlit()
1 parent bdbe4f4 commit 46c67a7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nico.nim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,6 @@ proc fontBlit(font: Font, srcRect, dstRect: Rect, color: ColorId) =
16931693
for x in 0..<dstRect.w:
16941694
if sx.int < 0 or sy.int < 0 or sx.int > font.w - 1 or sy.int > font.h - 1:
16951695
continue
1696-
if dx.int < clipMinX or dy.int < clipMinY or dx.int > clipMaxX or dy.int > clipMaxY:
1697-
continue
16981696
if font.data[sy * font.w + sx] == 1:
16991697
pset(dx,dy,currentColor)
17001698

0 commit comments

Comments
 (0)