mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
fix compile warnings
This commit is contained in:
parent
2fbfeee378
commit
f6a6827c59
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ loadLettersList( HWND hDlg, BlankDialogState* bState )
|
||||||
{
|
{
|
||||||
XP_U16 i;
|
XP_U16 i;
|
||||||
XP_U16 nTiles = bState->nTiles;
|
XP_U16 nTiles = bState->nTiles;
|
||||||
XP_UCHAR4* texts = bState->texts;
|
const XP_UCHAR4* texts = bState->texts;
|
||||||
|
|
||||||
for ( i = 0; i < nTiles; ++i ) {
|
for ( i = 0; i < nTiles; ++i ) {
|
||||||
XP_U16 len;
|
XP_U16 len;
|
||||||
|
@ -49,7 +49,7 @@ static void
|
||||||
showCurTray( HWND hDlg, BlankDialogState* bState )
|
showCurTray( HWND hDlg, BlankDialogState* bState )
|
||||||
{
|
{
|
||||||
if ( bState->pi->why == PICK_FOR_CHEAT ) {
|
if ( bState->pi->why == PICK_FOR_CHEAT ) {
|
||||||
PickInfo* pi = bState->pi;
|
const PickInfo* pi = bState->pi;
|
||||||
XP_U16 lenSoFar = 0;
|
XP_U16 lenSoFar = 0;
|
||||||
XP_U16 i;
|
XP_U16 i;
|
||||||
XP_UCHAR labelBuf[48];
|
XP_UCHAR labelBuf[48];
|
||||||
|
|
|
@ -729,9 +729,9 @@ ce_draw_measureMiniWText( DrawCtx* p_dctx, XP_UCHAR* str,
|
||||||
widebuf[len] = 0;
|
widebuf[len] = 0;
|
||||||
GetTextExtentPoint32( hdc, widebuf, wcslen(widebuf), &size );
|
GetTextExtentPoint32( hdc, widebuf, wcslen(widebuf), &size );
|
||||||
|
|
||||||
maxWidth = XP_MAX( maxWidth, size.cx );
|
maxWidth = (XP_U16)XP_MAX( maxWidth, size.cx );
|
||||||
height += size.cy + CE_INTERLINE_SPACE;
|
height += size.cy + CE_INTERLINE_SPACE;
|
||||||
dctx->miniLineHt = size.cy;
|
dctx->miniLineHt = (XP_U16)size.cy;
|
||||||
|
|
||||||
if ( nextStr == NULL ) {
|
if ( nextStr == NULL ) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue