Files
armorpaint/Sources/arm/App.hx
T

22 lines
439 B
Haxe
Raw Normal View History

2017-12-14 11:12:51 +01:00
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();
}
}