fix powerOfTwo setter for CANVAS Image type

This commit is contained in:
Zaphod
2018-05-17 19:23:35 +03:00
committed by Joshua Granick
parent 8bf5f12904
commit aad77af099

View File

@@ -1732,7 +1732,10 @@ class Image {
case CANVAS:
// TODO
#if (js && html5)
ImageCanvasUtil.convertToData (this);
#end
ImageDataUtil.resizeBuffer (this, newWidth, newHeight);
case DATA:
@@ -1857,4 +1860,4 @@ class Image {
}
}
}