From 3f64c2e23621a50f4c5d11cb962b050df9e27944 Mon Sep 17 00:00:00 2001
From: Jhoozle <44523263+Jhoozle@users.noreply.github.com>
Date: Sat, 24 Jul 2021 18:27:01 -0700
Subject: [PATCH] Add files via upload

---
 Extensions/olcPGEX_TransformedView.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Extensions/olcPGEX_TransformedView.h b/Extensions/olcPGEX_TransformedView.h
index 299fd40..36579ab 100644
--- a/Extensions/olcPGEX_TransformedView.h
+++ b/Extensions/olcPGEX_TransformedView.h
@@ -449,7 +449,7 @@ namespace olc
 	void TransformedView::DrawPartialSprite(const olc::vf2d& pos, Sprite* sprite, const olc::vi2d& sourcepos, const olc::vi2d& size, const olc::vf2d& scale, uint8_t flip)
 	{
 		olc::vf2d vSpriteSize = size;
-		if (IsRectVisible(pos, size * scale))
+		if (IsRectVisible(pos, vSpriteSize * scale))
 		{
 			olc::vf2d vSpriteScaledSize = olc::vf2d(size) * m_vRecipPixel * m_vWorldScale * scale;
 			olc::vf2d vSpritePixelStep = 1.0f / olc::vf2d(float(sprite->width), float(sprite->height));