Attempt to fix wrong canvas size
After bumping emsdk version, the canvas loads with an invalid size. This commit attempts to fix this.
This commit is contained in:
parent
228abe779a
commit
d49941096a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue