File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class TimerBase {
44 static private var __timers : Array <TimerBase > = [];
55
66 static public function update () {
7- var currentTime : Float = hxd. Timer .oldTime ;
7+ var currentTime : Float = hxd. Timer .lastTimeStamp ;
88 var count : Int = __timers .length ;
99 for (i in 0 ... count ) {
1010 var timer : TimerBase = __timers [i ];
@@ -27,7 +27,7 @@ class TimerBase {
2727
2828 public function new (delay : Int , callback : Void -> Void ) {
2929 this .callback = callback ;
30- _start = hxd. Timer .oldTime + delay ;
30+ _start = hxd. Timer .lastTimeStamp + delay ;
3131 __timers .push (this );
3232 }
3333
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package haxe.ui.backend.heaps;
22
33import h2d .Graphics ;
44import h2d .Interactive ;
5- import h2d .Sprite ;
5+ import h2d .Object ;
66import haxe .ui .util .Rectangle ;
77import hxd .Cursor ;
88
@@ -37,7 +37,7 @@ class UISprite extends Graphics
3737 return value ;
3838 }
3939
40- public function new (parent : Sprite ) {
40+ public function new (parent : Object ) {
4141 super (parent );
4242 }
4343
You can’t perform that action at this time.
0 commit comments