mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 12:33:40 +00:00
wineconsole: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
66bd68a809
commit
15992994bd
|
@ -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... */
|
/* we can't do much about the size... */
|
||||||
data->curcfg.cursor_size = size;
|
data->curcfg.cursor_size = size;
|
||||||
data->curcfg.cursor_visible = vis ? TRUE : FALSE;
|
data->curcfg.cursor_visible = vis != 0;
|
||||||
WCCURSES_PosCursor(data);
|
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);
|
val = GetDlgItemInt(hDlg, IDC_OPT_HIST_SIZE, &done, FALSE);
|
||||||
if (done) di->config.history_size = val;
|
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;
|
di->config.history_nodup = val;
|
||||||
|
|
||||||
val = 0;
|
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;
|
if (IsDlgButtonChecked(hDlg, IDC_OPT_CONF_SHIFT) & BST_CHECKED) val |= MK_SHIFT;
|
||||||
di->config.menu_mask = val;
|
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;
|
di->config.quick_edit = val;
|
||||||
|
|
||||||
SetWindowLongPtrW(hDlg, DWLP_MSGRESULT, PSNRET_NOERROR);
|
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;
|
data->curcfg.cursor_visible = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
vis = (vis) ? TRUE : FALSE;
|
vis = vis != 0;
|
||||||
if (force || vis != data->curcfg.cursor_visible)
|
if (force || vis != data->curcfg.cursor_visible)
|
||||||
{
|
{
|
||||||
data->curcfg.cursor_visible = vis;
|
data->curcfg.cursor_visible = vis;
|
||||||
|
|
Loading…
Reference in a new issue