Comment 7 for bug 320817

Revision history for this message
Ying-Chun Liu (paulliu) wrote :

Sorry, do you mean assign 0.7 as an argument?
Or Height*0.7??
According to
http://www.go-mono.com/docs/index.aspx?link=T%3aGtk.Window%2f*

The Resize member function reads two int.
I'm not sure if there's two float version of Resize.
If there is, Resize(1.0,0.7) is better.

But if we have to use Resize(int,int), it means we have to convert Height to float and *0.7 and convert it back to int which may not faster than two int operation *7 /10.

I'm not familiar at C# and Mono so I'm not sure which one is real faster. But usually two int op is faster than one float op, right?