combinedOpsForLayers: fix

This commit is contained in:
Jonathan Daugherty 2021-02-16 13:10:06 -08:00
parent f5b7222065
commit bf0874598f

View File

@ -81,7 +81,7 @@ combinedOpsForLayers :: Picture -> DisplayRegion -> ST s (MRowOps s)
combinedOpsForLayers pic r
| regionWidth r == 0 || regionHeight r == 0 = MVector.new 0
| otherwise = do
layerOps <- mapM (`buildSpans` layer) (picLayers pic)
layerOps <- mapM (`buildSpans` r) (picLayers pic)
case layerOps of
[] -> fail "empty picture"
[ops] -> substituteSkips (picBackground pic) ops