Fix HashLink support

This commit is contained in:
Joshua Granick
2018-07-12 20:01:54 -07:00
parent 2cd04ea4a3
commit 0c567fac0e
3 changed files with 4 additions and 6 deletions

View File

@@ -3890,7 +3890,7 @@ namespace lime {
#define _TKEY_EVENT _OBJ (_I32 _I32 _I32 _I32)
#define _TMOUSE_EVENT _OBJ (_I32 _F64 _F64 _I32 _I32 _F64 _F64)
#define _TRECTANGLE _OBJ (_F64 _F64 _F64 _F64)
#define _TRENDER_EVENT _OBJ (_ENUM _I32)
#define _TRENDER_EVENT _OBJ (_I32)
#define _TSENSOR_EVENT _OBJ (_I32 _F64 _F64 _F64 _I32)
#define _TTEXT_EVENT _OBJ (_I32 _I32 _I32 _BYTES _I32 _I32)
#define _TTOUCH_EVENT _OBJ (_I32 _F64 _F64 _I32 _F64 _I32 _F64 _F64)

View File

@@ -984,21 +984,19 @@ class NativeApplication {
@:keep /*private*/ class RenderEventInfo {
public var context:RenderContext;
public var type:RenderEventType;
public function new (type:RenderEventType = null, context:RenderContext = null) {
public function new (type:RenderEventType = null) {
this.type = type;
this.context = context;
}
public function clone ():RenderEventInfo {
return new RenderEventInfo (type, context);
return new RenderEventInfo (type);
}

View File

@@ -275,7 +275,7 @@ package lime.utils;
//Non-spec
#if !no_typedarray_inline #end
function copyFromArray(array:Array<Float>, offset : Int = 0 ) {
function copyFromArray(array:Array<#if hl Dynamic #else Float #end>, offset : Int = 0 ) {
//Ideally, native semantics could be used, like cpp.NativeArray.blit
var i = 0, len = array.length;