Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
15992994
Commit
15992994
authored
Aug 27, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Avoid TRUE:FALSE conditional expressions.
parent
66bd68a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
curses.c
programs/wineconsole/curses.c
+1
-1
dialog.c
programs/wineconsole/dialog.c
+2
-2
user.c
programs/wineconsole/user.c
+1
-1
No files found.
programs/wineconsole/curses.c
View file @
15992994
...
...
@@ -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
);
}
...
...
programs/wineconsole/dialog.c
View file @
15992994
...
...
@@ -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
);
...
...
programs/wineconsole/user.c
View file @
15992994
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment