oberhamsi/gamejs — pull request #39 by dorisenthecat (2011-12-29 20:26:04+00:00)
Title: Image load did not set _context of Surface

The image.load function does not set _context on the newly created surface, only _canvas so then when mask.fromSurface reads the _context.getImageData().data it doesn't get the real pixel values. But plotting the surface works as that uses the _canvas...

Feel free to ignore this if you had another approach in mind when working on the Surface design.