mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
launch asap
This commit is contained in:
parent
40468d8a1b
commit
551765b120
3 changed files with 6 additions and 12 deletions
|
@ -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 );
|
||||
|
|
|
@ -37,9 +37,6 @@
|
|||
<body>
|
||||
<div id="loadingDiv">CrossWords is loading...</div>
|
||||
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
|
||||
<div style="width:200px; margin-left:auto; margin-right:auto">
|
||||
<p class="startButton" onclick="start_function(this)">Click to start</p>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<button onclick="Module.ccall('button', null, ['string'], ['hintdown']);">Prev Hint</button>
|
||||
<button onclick="Module.ccall('button', null, ['string'], ['hintup']);">Next Hint</button>
|
||||
|
@ -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);
|
||||
};
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -495,7 +495,7 @@ wasm_draw_drawTrayDivider( DrawCtx* dctx, XWEnv xwe, const XP_Rect* rect,
|
|||
CellFlags flags )
|
||||
{
|
||||
WasmDrawCtx* wdctx = (WasmDrawCtx*)dctx;
|
||||
fillRect( wdctx, rect, &sOtherColors[BLACK] );
|
||||
fillRect( wdctx, rect, &sPlayerColors[wdctx->trayOwner] );
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue