Commit 15992994 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

wineconsole: Avoid TRUE:FALSE conditional expressions.

parent 66bd68a8
......@@ -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);
}
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment