Monkey Targets Forums/XNA/Control:PointToScreen

Raz(Posted 2011) [#1]
I've been doing more CLR profiling and since Mark fixed all of the draw issues, the most significant cause of allocation is the Control:PointToScreen() function.

It's a XNA thing, not a Monkey thing, so does anyone know what it does?


Nobuyuki(Posted 2011) [#2]
Sorry for bumping an ancient thread, however! What Control.PointToScreen does is it is used by Control and objects which inherit from it to convert from a Point on the existing control's surface to screen coordinates. Seeing as how the trans XNA compiler shouldn't be using WinForms, I don't understand why this would be called at all, though...

Raz(Posted 2011) [#3]
Thanks Nobuyuki