Skip to content

Commit

Permalink
Merge #262
Browse files Browse the repository at this point in the history
262: "Resizing errors" r=astronouth7303 a=kangaroo42



Co-authored-by: alby37135 <skang05@dcs.bbk.ac.uk>
  • Loading branch information
bors[bot] and alby37135 committed May 7, 2019
2 parents fb2e82a + e09d2fa commit 78efcd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ppb/systems/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def prepare_resource(self, game_object):
self.register_renderable(game_object)

source_image = self.resources[image_name]
if game_object.size <= 0:
return None
resized_image = self.resize_image(source_image, game_object.size)
rotated_image = self.rotate_image(resized_image, game_object.rotation)
return rotated_image
Expand Down

0 comments on commit 78efcd8

Please sign in to comment.