Compile fix
This commit is contained in:
@@ -101,12 +101,7 @@ class PNG {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
var bytes = Bytes.alloc (image.width * image.height * 4 + image.height);
|
var bytes = Bytes.alloc (image.width * image.height * 4 + image.height);
|
||||||
|
var sourceBytes = image.buffer.data.toBytes ();
|
||||||
#if flash
|
|
||||||
var sourceBytes = Bytes.ofData (image.buffer.data.getByteBuffer ());
|
|
||||||
#else
|
|
||||||
var sourceBytes = cast image.buffer.data;
|
|
||||||
#end
|
|
||||||
|
|
||||||
var sourceIndex:Int, index:Int;
|
var sourceIndex:Int, index:Int;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user