1
0
Fork 0

Canvas: expose dirtyPixels() to Nasal

This commit is contained in:
James Turner 2020-04-28 14:04:33 +01:00
parent b96327acf7
commit 6ae2c387bf

View file

@ -534,7 +534,8 @@ naRef initNasalCanvas(naRef globals, naContext c)
NasalImage::init("canvas.Image")
.bases<NasalElement>()
.method("fillRect", &f_imageFillRect)
.method("setPixel", &f_imageSetPixel);
.method("setPixel", &f_imageSetPixel)
.method("dirtyPixels", &sc::Image::dirtyPixels);
//----------------------------------------------------------------------------
// Layouting