@@ -166,7 +166,10 @@ Type UserInterface
166
166
'////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
167
167
168
168
Method InitializeCanvasGraphics ()
169
- m_CanvasGraphics = CreateCanvas(m_CanvasGraphicsAnchor[ 0 ] , m_CanvasGraphicsAnchor[ 1 ] , GadgetWidth(m_MainWindow) - m_CanvasGraphicsAnchor[ 0 ] , GadgetHeight(m_MainWindow) - m_CanvasGraphicsAnchor[ 1 ] , m_MainWindow)
169
+ 'm_CanvasGraphics = CreateCanvas(m_CanvasGraphicsAnchor[0], m_CanvasGraphicsAnchor[1], GadgetWidth(m_MainWindow) - m_CanvasGraphicsAnchor[0], GadgetHeight(m_MainWindow) - m_CanvasGraphicsAnchor[1], m_MainWindow)
170
+ 'Create the canvas as large as it can be to avoid bad output when source image is zoomed beyond canvas width. Everything grabbed outside the visible area is null and the output limbs are back squares.
171
+ m_CanvasGraphics = CreateCanvas(m_CanvasGraphicsAnchor[ 0 ] , m_CanvasGraphicsAnchor[ 1 ] , GetMaxWorkspaceWidth(), DesktopHeight(), m_MainWindow)
172
+
170
173
SetGadgetLayout(m_CanvasGraphics, m_CanvasGraphicsAnchor[ 0 ] , m_CanvasGraphicsSize[ 0 ] , m_CanvasGraphicsAnchor[ 1 ] , m_CanvasGraphicsSize[ 1 ] )
171
174
SetGraphicsDriver(GLMax2DDriver())
172
175
SetGraphics(CanvasGraphics(m_CanvasGraphics))
@@ -180,8 +183,8 @@ Type UserInterface
180
183
MoveGadget(m_LogoImagePanel, 0 , GadgetHeight(m_MainWindow) - m_LogoImagePanelSize[ 1 ] )
181
184
182
185
'Have to recreate the canvas because the backbuffer doesn't resize with the window.
183
- FreeGadget(m_CanvasGraphics)
184
- InitializeCanvasGraphics()
186
+ ' FreeGadget(m_CanvasGraphics)
187
+ ' InitializeCanvasGraphics()
185
188
EndMethod
186
189
187
190
'////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
0 commit comments