Skip to content

Commit e3d138b

Browse files
authored
Merge pull request #1 from mepsoid/master
Minor warnings fixes
2 parents 073d916 + aceb415 commit e3d138b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

haxe/ui/backend/TimerBase.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

haxe/ui/backend/heaps/UISprite.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package haxe.ui.backend.heaps;
22

33
import h2d.Graphics;
44
import h2d.Interactive;
5-
import h2d.Sprite;
5+
import h2d.Object;
66
import haxe.ui.util.Rectangle;
77
import 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

0 commit comments

Comments
 (0)