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.
This commit is contained in:
Stephen Seo 2024-03-21 16:56:49 +09:00
parent 228abe779a
commit d49941096a

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);