Skip to content

Commit

Permalink
modified to set stage backgroundColor black for WebGL/iOS8.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Feb 10, 2015
1 parent 8f218c4 commit eac2c41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tmpl/js/test-html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eac2c41

Please sign in to comment.