mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
capture timer settings
This commit is contained in:
parent
9fe2c54e9e
commit
a80d3bf20a
1 changed files with 12 additions and 0 deletions
|
@ -182,6 +182,18 @@ ceControlsToPrefs( HWND hDlg, PrefsPrefs* prefsPrefs )
|
|||
|
||||
prefsPrefs->cp.showBoardArrow = ceGetChecked( hDlg, IDC_CHECKSHOWCURSOR );
|
||||
prefsPrefs->cp.showRobotScores = ceGetChecked( hDlg, IDC_CHECKROBOTSCORES );
|
||||
prefsPrefs->gp.timerEnabled = ceGetChecked( hDlg, TIMER_CHECK );
|
||||
|
||||
if ( prefsPrefs->gp.timerEnabled ) {
|
||||
XP_UCHAR buf[10];
|
||||
XP_U16 minutes;
|
||||
XP_U16 bLen = sizeof(buf) / sizeof(buf[0]);
|
||||
|
||||
ceGetDlgItemText( hDlg, TIMER_EDIT, buf, &bLen );
|
||||
minutes = atoi( buf );
|
||||
|
||||
prefsPrefs->gp.gameSeconds = minutes * 60;
|
||||
}
|
||||
#ifdef FEATURE_TRAY_EDIT
|
||||
prefsPrefs->gp.allowPickTiles = ceGetChecked( hDlg, IDC_PICKTILES );
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue