AIRHelper: allow customization of the AIR simulator's screensize and screenDPI
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user