Skip to content

Commit 6847b9a

Browse files
committed
Adjust grabbed output pixmap position and size when saving as single file
1 parent d802272 commit 6847b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/GraphicsOutput.bmx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Type GraphicsOutput
114114
ChangeBackgroundColor(m_Magenta)
115115
Draw()
116116
Flip(1) 'Have to flip again for background color to actually change (for the grabbed pixmap, not the canvas), not sure why but whatever
117-
Return GrabPixmap(55, 120, 34 * m_FrameCount, 210)
117+
Return GrabPixmap(0, 12 + (m_SourceImageSize[1] * m_InputZoom), 100 + (m_FrameCount * ((m_TileSize / m_InputZoom) + 8)), 200)
118118
EndIf
119119
EndMethod
120120

@@ -200,7 +200,7 @@ Type GraphicsOutput
200200
m_FrameBoundingBoxSize = New SVec2I(32, 48)
201201
For Local row:Int = 0 Until c_LimbCount
202202
For Local frame:Int = 0 Until m_FrameCount
203-
m_FrameBoundingBoxPosX[row, frame] = 100 - 20 + (frame * (m_TileSize / m_InputZoom + 8))
203+
m_FrameBoundingBoxPosX[row, frame] = 100 - 20 + (frame * ((m_TileSize / m_InputZoom) + 8))
204204
m_FrameBoundingBoxPosY[row, frame] = vertOffsetFromSource - 12 + (row * 48)
205205
Utility.DrawRectOutline(New SVec2I(m_FrameBoundingBoxPosX[row, frame], m_FrameBoundingBoxPosY[row, frame]), m_FrameBoundingBoxSize, drawColor)
206206
Next

0 commit comments

Comments
 (0)