mIRC Home    About    Download    Register    News    Help

Print Thread
#238693 19/08/12 08:27 AM
Joined: Jul 2006
Posts: 4,180
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
/drawrect -e has a problem regarding the w and h parameter:
Code:
//window -pdf @a -1 -1 200 200 | drawrect -fr @a 0 0 0 0 200 200 | drawrect -re @a 255 1 100 100 1 1

Should draw a dot/pixel but doesn't do anything.

using
Code:
drawrect -re @a 255 1 100 100 2 2
is the same as using
Code:
drawrect -re @a 255 1 100 100 1 2
etc


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #239163 28/09/12 07:54 AM
Joined: Dec 2002
Posts: 5,477
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,477
Thanks for the bug report. This is due to /drawrect using the Rectangle function, which excludes the bottom and right edges. Unfortunately this is how the /drawrect comand has behaved since it was first added in 2001, so it is not possible to change it now as it would affect all existing scripts that take account of this.


Link Copied to Clipboard