Skip to content

Commit 169f57f

Browse files
committed
Fix bad output when changing input zoom
1 parent edac57c commit 169f57f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/GraphicsOutput.bmx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Type GraphicsOutput
6565
m_InputZoom = clampedNewZoom
6666
m_TileSize = 24 * m_InputZoom
6767

68+
m_SourceImageSize = New SVec2I(m_SourceImage.Width, m_SourceImage.Height)
69+
DrawImageRect(m_SourceImage, 0, 0, m_SourceImageSize[0] * m_InputZoom, m_SourceImageSize[1] * m_InputZoom) 'Draw the source image to the backbuffer so limb tiles can be created
6870
m_LimbManager.CreateLimbParts(m_InputZoom, m_TileSize)
6971
EndIf
7072
Return m_InputZoom

0 commit comments

Comments
 (0)