Refactor removing extra space and add break line for { (#5533)
Co-authored-by: maiconpintoabreu <maicon@thinkpad02.exads.com>
This commit is contained in:
parent
d4f636151b
commit
f43e049444
18 changed files with 35 additions and 23 deletions
|
|
@ -894,7 +894,8 @@ void SwapScreenBuffer(void)
|
|||
const canvas = Module.canvas;
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
||||
if (!Module.__img || (Module.__img.width !== width) || (Module.__img.height !== height)) {
|
||||
if (!Module.__img || (Module.__img.width !== width) || (Module.__img.height !== height))
|
||||
{
|
||||
Module.__img = ctx.createImageData(width, height);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -875,7 +875,8 @@ void SwapScreenBuffer(void)
|
|||
//const canvas = Module['canvas'];
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
||||
if (!Module.__img || (Module.__img.width !== width) || (Module.__img.height !== height)) {
|
||||
if (!Module.__img || (Module.__img.width !== width) || (Module.__img.height !== height))
|
||||
{
|
||||
Module.__img = ctx.createImageData(width, height);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue