Files
armorpaint/Sources/arm/App.hx
T
Lubos Lenco bda8b2d54f Init
2017-12-14 11:12:51 +01:00

22 lines
439 B
Haxe

package arm;
class App {
public static function w():Int {
if (UINodes.show) return Std.int((kha.System.windowWidth() - UITrait.windowW) / 2);
else return kha.System.windowWidth() - UITrait.windowW;
}
public static function h():Int {
return kha.System.windowHeight();
}
public static function realw():Int {
return kha.System.windowWidth();
}
public static function realh():Int {
return kha.System.windowHeight();
}
}