web resize canvas after init
This commit is contained in:
@@ -104,7 +104,9 @@ set_target_properties(panopainter PROPERTIES
|
|||||||
-s FULL_ES3=1\
|
-s FULL_ES3=1\
|
||||||
-s USE_PTHREADS=1\
|
-s USE_PTHREADS=1\
|
||||||
-s ASSERTIONS=2\
|
-s ASSERTIONS=2\
|
||||||
-s TOTAL_MEMORY=256Mb\
|
-s TOTAL_MEMORY=512Mb\
|
||||||
|
-s ALLOW_MEMORY_GROWTH=1\
|
||||||
|
-s WASM_MEM_MAX=2048MB\
|
||||||
--embed-file data\
|
--embed-file data\
|
||||||
--js-library ../src/mylib.js\
|
--js-library ../src/mylib.js\
|
||||||
--bind"
|
--bind"
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ int main()
|
|||||||
console.log("syncFS result:");
|
console.log("syncFS result:");
|
||||||
console.log(err);
|
console.log(err);
|
||||||
Module.StartApp();
|
Module.StartApp();
|
||||||
|
Module.setCanvasSize(window.innerWidth, window.innerHeight);
|
||||||
});
|
});
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user