Skip to content

Commit 1e821f9

Browse files
committed
Disable output zoom when grabbing output for saving
1 parent ace4751 commit 1e821f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Types/GraphicsOutput.bmx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Type GraphicsOutput
151151
Return Null
152152
Else
153153
ChangeBackgroundColor(m_Magenta)
154-
Draw()
154+
Draw(True)
155155
Flip(1) 'Have to flip again for background color to actually change (for the grabbed pixmap, not the canvas), not sure why but whatever
156156
Return GrabPixmap(0, 12 + (m_SourceImageSize[1] * m_InputZoom), 100 + (m_FrameCount * ((m_TileSize / m_InputZoom) + 8)), 200)
157157
EndIf
@@ -165,7 +165,7 @@ Type GraphicsOutput
165165
Return Null
166166
Else
167167
ChangeBackgroundColor(m_Magenta)
168-
Draw()
168+
Draw(True)
169169
Flip(1) 'Have to flip again for background color to actually change (for the grabbed pixmaps, not the canvas), not sure why but whatever
170170

171171
Local framesToSave:TPixmap[c_LimbCount, m_FrameCount]
@@ -234,7 +234,7 @@ Type GraphicsOutput
234234

235235
'////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
236236

237-
Method Draw()
237+
Method Draw(disableOutputZoom:Int = False)
238238
If m_SourceImage = Null Then
239239
DrawNoSourceImageScreen()
240240
Else
@@ -261,7 +261,7 @@ Type GraphicsOutput
261261
Next
262262
EndIf
263263

264-
If m_OutputZoom > 1 Then
264+
If Not disableOutputZoom And m_OutputZoom > 1 Then
265265
DrawZoomedOutput()
266266
EndIf
267267

0 commit comments

Comments
 (0)