We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ba7fe commit 2817487Copy full SHA for 2817487
src/renderedtarget.cpp
@@ -602,11 +602,10 @@ void RenderedTarget::calculateRotation()
602
void RenderedTarget::calculateSize()
603
{
604
if (m_skin && m_costume) {
605
- Texture texture = m_skin->getTexture(m_size * m_stageScale);
606
- m_texture = texture;
607
- m_width = texture.width();
608
- m_height = texture.height();
609
- setScale(m_size * m_stageScale / m_skin->getTextureScale(texture) / m_costume->bitmapResolution());
+ m_texture = m_skin->getTexture(m_size * m_stageScale);
+ m_width = m_texture.width();
+ m_height = m_texture.height();
+ setScale(m_size * m_stageScale / m_skin->getTextureScale(m_texture) / m_costume->bitmapResolution());
610
}
611
612
0 commit comments