wineconsole: Avoid TRUE:FALSE conditional expressions.

This commit is contained in:
Michael Stefaniuc 2012-08-27 13:29:31 +02:00 committed by Alexandre Julliard
parent 66bd68a809
commit 15992994bd
3 changed files with 4 additions and 4 deletions

View file

@ -300,7 +300,7 @@ static void WCCURSES_ShapeCursor(struct inner_data* data, int size, int vis, BOO
{
/* we can't do much about the size... */
data->curcfg.cursor_size = size;
data->curcfg.cursor_visible = vis ? TRUE : FALSE;
data->curcfg.cursor_visible = vis != 0;
WCCURSES_PosCursor(data);
}

View file

@ -118,7 +118,7 @@ static INT_PTR WINAPI WCUSER_OptionDlgProc(HWND hDlg, UINT msg, WPARAM wParam, L
val = GetDlgItemInt(hDlg, IDC_OPT_HIST_SIZE, &done, FALSE);
if (done) di->config.history_size = val;
val = (IsDlgButtonChecked(hDlg, IDC_OPT_HIST_NODOUBLE) & BST_CHECKED) ? TRUE : FALSE;
val = (IsDlgButtonChecked(hDlg, IDC_OPT_HIST_NODOUBLE) & BST_CHECKED) != 0;
di->config.history_nodup = val;
val = 0;
@ -126,7 +126,7 @@ static INT_PTR WINAPI WCUSER_OptionDlgProc(HWND hDlg, UINT msg, WPARAM wParam, L
if (IsDlgButtonChecked(hDlg, IDC_OPT_CONF_SHIFT) & BST_CHECKED) val |= MK_SHIFT;
di->config.menu_mask = val;
val = (IsDlgButtonChecked(hDlg, IDC_OPT_QUICK_EDIT) & BST_CHECKED) ? TRUE : FALSE;
val = (IsDlgButtonChecked(hDlg, IDC_OPT_QUICK_EDIT) & BST_CHECKED) != 0;
di->config.quick_edit = val;
SetWindowLongPtrW(hDlg, DWLP_MSGRESULT, PSNRET_NOERROR);

View file

@ -191,7 +191,7 @@ static void WCUSER_ShapeCursor(struct inner_data* data, int size, int vis, BOOL
data->curcfg.cursor_visible = -1;
}
vis = (vis) ? TRUE : FALSE;
vis = vis != 0;
if (force || vis != data->curcfg.cursor_visible)
{
data->curcfg.cursor_visible = vis;