Hi, I'm getting an issue when compiling to the desktop target on Mac osx. Rendering to an imagecanvas only draws to the bottom left quarter of the window even a full imageCanvas.clear r,g,b will only fill up the bottom left quarter with the colour. But compiling to HTML5 it works fine. Is this a bug, possibly to do with how the mac deals with half-pixels, or is there something I'm missing that I should be doing?
Code:
Import mojo2
Class MyApp Extends App
Field image:Image
Field imageCanvas:Canvas
Field windowCanvas:Canvas
Method OnCreate()
image=New Image( DeviceWidth,DeviceHeight,0,0 )
imageCanvas=New Canvas( image )
windowCanvas=New Canvas
SetUpdateRate 30
End
Method OnRender()
imageCanvas.PushMatrix()
imageCanvas.Clear 128,0,255
imageCanvas.Flush
imageCanvas.PopMatrix
windowCanvas.Clear
windowCanvas.DrawImage image
windowCanvas.Flush
End
End
Function Main()
New MyApp
Return True
End