Add files via upload

pull/252/head
Jhoozle 4 years ago committed by GitHub
parent 5764bbab19
commit 3f64c2e236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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));

Loading…
Cancel
Save