diff --git a/xwords4/wasm/main.c b/xwords4/wasm/main.c index 5653c6b0f..57463eb15 100644 --- a/xwords4/wasm/main.c +++ b/xwords4/wasm/main.c @@ -45,8 +45,8 @@ #define WINDOW_WIDTH 400 #define WINDOW_HEIGHT 600 -#define BDWIDTH 400 -#define BDHEIGHT 400 +#define BDWIDTH WINDOW_WIDTH +#define BDHEIGHT WINDOW_HEIGHT #define KEY_GAME "the_game" @@ -140,7 +140,8 @@ makeAndDraw( Globals* globals, bool forceNew, bool p0robot, bool p1robot ) BoardDims dims; board_figureLayout( globals->game.board, NULL, &globals->gi, WASM_BOARD_LEFT, WASM_HOR_SCORE_TOP, BDWIDTH, BDHEIGHT, - 110, 150, 200, BDWIDTH-25, 16, 16, XP_FALSE, &dims ); + 110, 150, 200, BDWIDTH-25, BDWIDTH/15, BDHEIGHT/15, + XP_FALSE, &dims ); board_applyLayout( globals->game.board, NULL, &dims ); model_setDictionary( globals->game.model, NULL, globals->dict ); diff --git a/xwords4/wasm/main.html b/xwords4/wasm/main.html index ad745fd7e..53a7c3522 100644 --- a/xwords4/wasm/main.html +++ b/xwords4/wasm/main.html @@ -37,9 +37,6 @@
CrossWords is loading...
-
-

Click to start

-
@@ -65,17 +62,13 @@ onRuntimeInitialized: function() { var e = document.getElementById('loadingDiv'); e.style.visibility = 'hidden'; + Module.ccall('mainf', null, null); }, canvas: (function() { var canvas = document.getElementById('canvas'); return canvas; })() }; - - var start_function = function(o) { - o.style.visibility = "hidden"; - Module.ccall('mainf', null, null); - };