[ts][player] PMA by default.

This commit is contained in:
badlogic 2018-12-20 18:33:16 +01:00
parent 61f4165dae
commit 96a2386609
3 changed files with 4 additions and 4 deletions

View File

@ -9591,7 +9591,7 @@ var spine;
if (!config.fullScreenBackgroundColor)
config.fullScreenBackgroundColor = config.backgroundColor;
if (!config.premultipliedAlpha)
config.premultipliedAlpha = false;
config.premultipliedAlpha = true;
if (!config.success)
config.success = function (widget) { };
if (!config.error)

File diff suppressed because one or more lines are too long

View File

@ -62,7 +62,7 @@
/* Optional: list of skin names from which the user can choose. */
skins: string[]
/* Optional: whether the skeleton uses premultiplied alpha. Default: false. */
/* Optional: whether the skeleton uses premultiplied alpha. Default: true. */
premultipliedAlpha: boolean
/* Optional: whether to show the player controls. Default: true. */
@ -325,7 +325,7 @@
if (!config.alpha) config.alpha = false;
if (!config.backgroundColor) config.backgroundColor = "#000000";
if (!config.fullScreenBackgroundColor) config.fullScreenBackgroundColor = config.backgroundColor;
if (!config.premultipliedAlpha) config.premultipliedAlpha = false;
if (!config.premultipliedAlpha) config.premultipliedAlpha = true;
if (!config.success) config.success = (widget) => {};
if (!config.error) config.error = (widget, msg) => {};
if (!config.debug) config.debug = {