Group: Forum Members
Posts: 7,
Visits: 74
|
I've been updating from Version 5 to Version 6 and noticed a weird bug where some of my stimuli would no longer render in the location I had specified. Through some sleuthing I finally worked out it was because the values returned by 'display.canvasheight' and 'display.canvaswidth' have changed from version 5 to version 6. Version 5 would return an integer value, such as '2160'. Version 6 returns a string, such as '2160px', with the 'px' added to the end. My code was trying to multiply an integer by a string and failed as a result.
Would be good in the future if a list of these changes could be made available in the language reference when versions get updated. Also, I feel like it would be more useful if the properties were returned as integers, not strings.
Cheers, Ariel
|