> Am I using c2nim wrong?

No, but an outdated version of c2nim. 

> The other question is that if I change width/height to floats, the output is 
> wrong again

Huh, this makes no sense, there is nothing wrong with your snippets. Maybe give 
us a full example program?

Reply via email to