Merged revision(s) 3224 from trunk:Fix bug with various rectangle draw functions introduced in revision 3198.