From eac2c416ed425980be2b7551d58e2c6a99f3af61 Mon Sep 17 00:00:00 2001 From: Koji Nakamaru Date: Tue, 10 Feb 2015 13:06:26 +0900 Subject: [PATCH] modified to set stage backgroundColor black for WebGL/iOS8. --- tmpl/js/test-html5.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmpl/js/test-html5.js b/tmpl/js/test-html5.js index c3ce1fc..6de4742 100644 --- a/tmpl/js/test-html5.js +++ b/tmpl/js/test-html5.js @@ -530,7 +530,9 @@ elm.textContent = info; }; stage.lwf = lwf; - { + if (window['testlwf_html5target'] == 'webgl') { + stage.style.backgroundColor = 'black'; + } else { var bgColor = lwf.backgroundColor; var a = (bgColor >> 24) & 0xff; var r = (bgColor >> 16) & 0xff;