fixed bug related to clipping in fast render mode

This commit is contained in:
Youen 2023-01-18 18:53:52 +01:00
parent c06af9db24
commit a7201934be

View File

@ -509,6 +509,7 @@ class RasterView:
]) ])
# set clip color # set clip color
if not fast_render:
clip_color = (0.5, 0.5, 0.5) clip_color = (0.5, 0.5, 0.5)
colorized_clip_img = Image.merge("RGB", [ colorized_clip_img = Image.merge("RGB", [
clip_img.point(lambda p: int(clip_color[0] * (255.0 - p))), clip_img.point(lambda p: int(clip_color[0] * (255.0 - p))),