Compare commits

...

2 commits

Author SHA1 Message Date
Stephen Seo d49941096a Attempt to fix wrong canvas size
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Successful in 51s
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Has been skipped
After bumping emsdk version, the canvas loads with an invalid size. This
commit attempts to fix this.
2024-03-21 16:56:49 +09:00
Stephen Seo 228abe779a Bump emsdk_version to 3.1.56
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy-main (push) Has been skipped
Build and Publish WASM version of demo / Build-And-Deploy-devel (push) Successful in 1m1s
2024-03-21 16:44:58 +09:00
3 changed files with 8 additions and 4 deletions

View file

@ -11,9 +11,9 @@ build to [jumpartifact.com/demo0](https://jumpartifact.com/demo0/).
Clone `https://github.com/emscripten-core/emsdk.git` to `${HOME}/git/emsdk`, and
run the following commands in the cloned directory:
git checkout 3.1.50
./emsdk install 3.1.50
./emsdk activate 3.1.50
git checkout 3.1.56
./emsdk install 3.1.56
./emsdk activate 3.1.56
Now you can use emsdk by sourcing the `emsdk_env.sh` file and using emcc/em++.
The Makefile in `wasm_build/` should now "just work" with `make`.

View file

@ -1 +1 @@
3.1.50
3.1.56

View file

@ -57,7 +57,11 @@ void jumpartifact_demo_update(void *ud) {
}
int main() {
#ifdef __EMSCRIPTEN__
InitWindow(call_js_get_canvas_width(), call_js_get_canvas_height(), "Demo");
#else
InitWindow(800, 800, "Demo");
#endif
#ifdef NDEBUG
SetTraceLogLevel(LOG_WARNING);