Flash fixes
This commit is contained in:
@@ -206,7 +206,7 @@ class FlashWindow {
|
||||
|
||||
};
|
||||
|
||||
if (Reflect.hasField (attributes, "context") && Reflect.hasField (attributes.context, "background")) {
|
||||
if (Reflect.hasField (attributes, "context") && Reflect.hasField (attributes.context, "background") && attributes.context.background != null) {
|
||||
|
||||
stage.color = attributes.context.background;
|
||||
contextAttributes.background = stage.color;
|
||||
|
||||
@@ -33,6 +33,11 @@ import ::APP_MAIN::;
|
||||
app.meta.set ("name", "::meta.title::");
|
||||
app.meta.set ("packageName", "::meta.packageName::");
|
||||
|
||||
#if (flash && !air)
|
||||
app.window.context.attributes.background = ::WIN_BACKGROUND::;
|
||||
app.window.frameRate = ::WIN_FPS::;
|
||||
#else
|
||||
|
||||
::foreach windows::
|
||||
var attributes:lime.ui.WindowAttributes = {
|
||||
|
||||
@@ -98,6 +103,7 @@ import ::APP_MAIN::;
|
||||
app.createWindow (attributes);
|
||||
::end::
|
||||
#end
|
||||
#end
|
||||
|
||||
// preloader.create ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user