diff --git a/game/scripts/doll/body.rpy b/game/scripts/doll/body.rpy index e03829cd..87235cea 100644 --- a/game/scripts/doll/body.rpy +++ b/game/scripts/doll/body.rpy @@ -36,12 +36,12 @@ init python: return layers @functools.cache - def build_image(self, hash, matrix=None): + def build_image(self, hash, matrix=None, maxsize=(1010, 1200)): if matrix is None: matrix = self.matrix processors = { - "default": lambda file: Transform(Image(file), matrixcolor=matrix), + "default": lambda file: Transform(file, matrixcolor=matrix, maxsize=maxsize), } layers = self.get_layers(hash) diff --git a/game/scripts/doll/cum.rpy b/game/scripts/doll/cum.rpy index 91ed8a8b..f648b088 100644 --- a/game/scripts/doll/cum.rpy +++ b/game/scripts/doll/cum.rpy @@ -113,13 +113,13 @@ init python: return layers @functools.cache - def build_image(self, hash, subpath="", matrix=None): + def build_image(self, hash, subpath="", matrix=None, maxsize=(1010, 1200)): if matrix is None: matrix = self.char.body.matrix processors = { - "skin": lambda file: Transform(file, matrixcolor=matrix), - "default": lambda file: Image(file), + "skin": lambda file: Transform(file, matrixcolor=matrix, maxsize=maxsize), + "default": lambda file: Transform(file, maxsize=maxsize), } layers = self.get_layers(hash, subpath) diff --git a/game/scripts/doll/face.rpy b/game/scripts/doll/face.rpy index 668a6124..0eda664a 100644 --- a/game/scripts/doll/face.rpy +++ b/game/scripts/doll/face.rpy @@ -75,7 +75,7 @@ init python: return layers @functools.cache - def build_image(self, hash, subpath="", matrix=None): + def build_image(self, hash, subpath="", matrix=None, maxsize=(1010, 1200)): layers = self.get_layers(hash, subpath) eyemask = next((layers.pop(k, None) for k in layers if "eyemask" in k), [None])[0] @@ -83,9 +83,9 @@ init python: matrix = self.char.body.matrix processors = { - "skin": lambda file: Transform(file, matrixcolor=matrix), - "pupils": lambda file: AlphaMask(file, eyemask), - "default": lambda file: Image(file), + "skin": lambda file: Transform(file, maxsize=maxsize, matrixcolor=matrix), + "pupils": lambda file: Transform(AlphaMask(file, eyemask), maxsize=maxsize), + "default": lambda file: Transform(file, maxsize=maxsize), } sprites = []