Skip to content
⌘ NSIS Forum Archive

Floats and System plugin

7 posts

zeeh3#

Floats and System plugin

I am trying to pass a float value using system plugin without success when calling this gdi+ function:
System::Call 'GDIPlus::GdipCreatePen1(i${ARGB},i${Width},i2,*i.s)i.r0'
${Width} has the float value. The Pen object created has always width of 1. Is there any workaround for this? Thank you.

Zeeh3
Anders#
And ${Width} is what exactly? 123.456 etc is not going to work but you can probably pass a integer representation of a float.
zeeh3#
${Width} is the width of the pen measured in the units specified in the third parameter. I will test my code again, thank you.
Anders#
I understand what it means but you have still not told us which value you used!

Try !define Width 0x40400000
zeeh3#edited
The input value I used was 10. Your suggestion works partially (pen size increased a little).
Anders#
Originally Posted by zeeh3 View Post
your suggestion works partially
You did not request a specific size, how the fuck could I know you wanted 10.0! I think my number was 3.0