Fixed bug incorrectly comparing strings using ==
Merge pull request #83 from timothyt/Offscreencanvas-fix

Fixed bug incorrectly comparing strings using ==