diff --git a/xwords4/wince/ceginfo.c b/xwords4/wince/ceginfo.c index c9b47cbcf..7d5bdc972 100755 --- a/xwords4/wince/ceginfo.c +++ b/xwords4/wince/ceginfo.c @@ -1,6 +1,6 @@ -/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */ +/* -*-mode: C; fill-column: 77; c-basic-offset: 4; compile-command: "make TARGET_OS=wince DEBUG=TRUE"; -*- */ /* - * Copyright 2002-2006 by Eric House (xwords@eehouse.org). All rights + * Copyright 2002-2008 by Eric House (xwords@eehouse.org). All rights * reserved. * * This program is free software; you can redistribute it and/or @@ -489,20 +489,14 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) XP_U16 id; GameInfoState* giState; -/* #ifdef DEBUG */ -/* { */ -/* char buf[64]; */ -/* messageToBuf( message, buf, sizeof(buf) ); */ -/* XP_LOGF( "%s: %s", __func__, buf ); */ -/* } */ -/* #endif */ - if ( message == WM_INITDIALOG ) { SetWindowLong( hDlg, GWL_USERDATA, lParam ); giState = (GameInfoState*)lParam; giState->hDlg = hDlg; globals = giState->globals; + ceStackButtonsRight( globals, hDlg ); + giState->newGameCtx = newg_make( MPPARM(globals->mpool) giState->isNewGame, &globals->util, @@ -520,7 +514,6 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) if ( giState->isNewGame ) { (void)SetWindowText( hDlg, L"New game" ); } - ceStackButtonsRight( globals, hDlg ); return TRUE; } else { diff --git a/xwords4/wince/cehntlim.c b/xwords4/wince/cehntlim.c index 3cd25a73a..434aff862 100755 --- a/xwords4/wince/cehntlim.c +++ b/xwords4/wince/cehntlim.c @@ -21,6 +21,7 @@ #include #include "cehntlim.h" +#include "ceutil.h" static void initComboBox( HWND hDlg, XP_U16 id, XP_U16 startVal ) @@ -61,6 +62,9 @@ HintLimitsDlg( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) SetWindowLong( hDlg, GWL_USERDATA, lParam ); hState = (HintLimitsState*)lParam; globals = hState->globals; + + ceStackButtonsRight( globals, hDlg ); + return TRUE; } else { hState = (HintLimitsState*)GetWindowLong( hDlg, GWL_USERDATA );