fix zip type error in asciilib
This commit is contained in:
@@ -35,9 +35,9 @@
|
|||||||
// TODO rectangle type
|
// TODO rectangle type
|
||||||
// TODO optional source rectangle argument
|
// TODO optional source rectangle argument
|
||||||
(method blitSurface [:Surface surface x y]
|
(method blitSurface [:Surface surface x y]
|
||||||
(doFor [srcX destX] (the kiss.List<kiss.List<Int>> (zipDrop (range surface.width) (range x (+ x surface.width))))
|
(doFor [srcX destX] (zipDrop (range surface.width) (range x (+ x surface.width)))
|
||||||
(when (< -1 destX width)
|
(when (< -1 destX width)
|
||||||
(doFor [srcY destY] (the kiss.List<kiss.List<Int>> (zipDrop (range 0 surface.height) (range y (+ y surface.height))))
|
(doFor [srcY destY] (zipDrop (range 0 surface.height) (range y (+ y surface.height)))
|
||||||
(when (< -1 destY height)
|
(when (< -1 destY height)
|
||||||
(when (surface.isCellOpaque srcX srcY)
|
(when (surface.isCellOpaque srcX srcY)
|
||||||
(setBackgroundColor destX destY (surface.getBackgroundColor srcX srcY))
|
(setBackgroundColor destX destY (surface.getBackgroundColor srcX srcY))
|
||||||
|
Reference in New Issue
Block a user