About Monkey 2 › Forums › Monkey 2 Development › Maybe bug?
This topic contains 8 replies, has 3 voices, and was last updated by
AdamStrange
1 year ago.
-
AuthorPosts
-
April 11, 2018 at 5:52 pm #14324
I tried this graphical example on my friends MacOS and it if you happen to have an enlarged mousepointer (Settings/Accessibility/Display/Cursorsize) then you get a blinking grey rectangle flashing underneath the Mousepointer.
I don’t know if this is Monkey2 related or OS related but, there it is.
Sorry about the fact that I couldn’t take a screenshot of it because it always takes the picture when the rectangle is out of the picture.Monkey12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061Namespace myapp#Import "<std>"#Import "<mojo>"Using std..Using mojo..Class MyWindow Extends WindowField image1:ImageField image2:ImageField image3:ImageField cnvs:CanvasField img:ImageMethod New( title:String="Simple mojo app",width:Int=640,height:Int=480,flags:WindowFlags=Null )Super.New( title,width,height,flags )image1 = New Image(100,100)cnvs = New Canvas(image1)cnvs.Clear(New Color(0,0,0,0))cnvs.Color= New Color(1,0,0)cnvs.DrawCircle(50,50,50)cnvs.Flush()image2 = New Image(100,100)cnvs = New Canvas(image2)cnvs.Clear(New Color(0,0,0,0))cnvs.Color= New Color(1,0,0)cnvs.DrawCircle(50,50,50)cnvs.Flush()image3 = New Image(100,100)cnvs = New Canvas(image3)cnvs.Clear(New Color(0,0,0,0))cnvs.Color= New Color(0,1,0)cnvs.DrawCircle(50,50,50)cnvs.Flush()img = New Image(640,480)cnvs = New Canvas(img)cnvs.Clear(New Color(0,0,0,0))' SwapInterval = 0EndMethod OnRender( canvas:Canvas ) OverrideApp.RequestRender()canvas.Clear(Color.Grey)canvas.Color=Color.Blackcanvas.DrawRect(200,0,200,400)canvas.Color =Color.Whitecnvs.Clear(New Color(0,0,0,0))'cnvs.BlendMode=BlendMode.Alphacnvs.DrawImage(image1,150,50)cnvs.DrawImage(image2,100,100)cnvs.BlendMode=BlendMode.Additivecnvs.DrawImage(image3,Mouse.X-50,Mouse.Y-50)cnvs.Flush()canvas.DrawImage(img,0,0)EndEndFunction Main()New AppInstanceNew MyWindowApp.Run()EndApril 17, 2018 at 10:10 am #14378What version of Monkey are you using and also what MacOS version.
Tested with V1.1.05 and High Sierra and it works no problem here
April 17, 2018 at 1:27 pm #14379Works fine here as well. 2013 MacBook Air, OS Sierra and the latest Monkey 2.
April 17, 2018 at 2:09 pm #14380It works well here too without enlarged pointer I might need to say.
Could you please enlarge it to max (or midsize, anything than original size really) and try it? You do that in System Preferences / Accessibility / Cursor size
April 18, 2018 at 2:47 am #14386Dude, I know how to read. Thats what I did and it worked fine. I tried it max size medium and small it worked fine with all.
April 18, 2018 at 6:14 am #14387me too. enlarged pointer no problem
April 18, 2018 at 7:06 am #14388Okay so my friend reinstalled MacOS and he still got the same effect, I don’t know what to do now.
April 18, 2018 at 9:33 am #14390I said what everyone said here and I added that it was probably the old model so he got down and bought a Apple iMac 27″ 5k Retina, lo and behold, it now WORKS!
Thanks so much for trying things out
April 18, 2018 at 12:52 pm #14394what was the old hardware he was trying to run it on?
-
AuthorPosts
You must be logged in to reply to this topic.