AIRHelper: allow customization of the AIR simulator's screensize and screenDPI

This commit is contained in:
Josh Tynjala
2025-03-18 09:32:01 -07:00
parent 63d6deeec3
commit c6cd26f699

View File

@@ -336,12 +336,28 @@ class AIRHelper
if (targetPlatform == ANDROID || targetPlatform == IOS)
{
// these are just generic default dimensions that are a bit
// larger than AIR's defaults for the simulator
args.push("-XscreenDPI");
args.push("252");
if (project.config.exists("air.screenDPI"))
{
var screenDPI = project.config.getString("air.screenDPI");
args.push(screenDPI);
}
else
{
args.push("252");
}
args.push("-screensize");
args.push("480x762:480x800");
if (project.config.exists("air.screensize"))
{
var screensize = project.config.getString("air.screensize");
args.push(screensize);
}
else
{
// these are just generic default dimensions that are a bit
// larger than AIR's defaults for the simulator
args.push("480x762:480x800");
}
}
if (targetPlatform == ANDROID)
{