Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 196 → Rev 197

/polymer/eduke32/source/startwin.game.c
29,7 → 29,7
 
static HWND startupdlg = NULL;
static HWND pages[2] = { NULL, NULL};
static int done = -1;
static int done = -1, mode = TAB_CONFIG;
 
static void PopulateForm(void)
{
119,6 → 119,7
ShowWindow(pages[cur],SW_HIDE);
SendMessage(tab, TCM_SETCURSEL, n, 0);
ShowWindow(pages[n],SW_SHOW);
mode = n;
 
SetFocus(GetDlgItem(startupdlg, WIN_STARTWIN_TABCTL));
}
125,7 → 126,7
 
static void EnableConfig(int n)
{
EnableWindow(GetDlgItem(startupdlg, WIN_STARTWIN_CANCEL), n);
//EnableWindow(GetDlgItem(startupdlg, WIN_STARTWIN_CANCEL), n);
EnableWindow(GetDlgItem(startupdlg, WIN_STARTWIN_START), n);
EnableWindow(GetDlgItem(pages[TAB_CONFIG], IDCFULLSCREEN), n);
EnableWindow(GetDlgItem(pages[TAB_CONFIG], IDCVMODE), n);
260,7 → 261,8
}
 
case WM_CLOSE:
done = 0;
if (mode == TAB_CONFIG) done = 0;
else quitevent++;
return TRUE;
 
case WM_DESTROY:
279,7 → 281,10
 
case WM_COMMAND:
switch (LOWORD(wParam)) {
case WIN_STARTWIN_CANCEL: done = 0; return TRUE;
case WIN_STARTWIN_CANCEL:
if (mode == TAB_CONFIG) done = 0;
else quitevent++;
return TRUE;
case WIN_STARTWIN_START: done = 1; return TRUE;
}
return FALSE;