mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
fix assertion failure
This commit is contained in:
parent
79433de160
commit
d5b1e429ea
1 changed files with 1 additions and 2 deletions
|
@ -102,7 +102,6 @@ fontFor( WasmDrawCtx* wdctx, int height )
|
|||
rec->size = height;
|
||||
rec->font = TTF_OpenFont( "assets_dir/FreeSans.ttf", height );
|
||||
result = rec->font;
|
||||
XP_LOGFF( "made font for size %d", height );
|
||||
}
|
||||
|
||||
return result;
|
||||
|
@ -396,7 +395,7 @@ wasm_draw_measureScoreText( DrawCtx* dctx, XWEnv xwe,
|
|||
int width, height;
|
||||
measureText( wdctx, buf, fontHeight, &width, &height );
|
||||
|
||||
*widthP = width;
|
||||
*widthP = XP_MIN( width, rect->height );
|
||||
*heightP = XP_MIN( height, rect->height );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue