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
d082517c
Commit
d082517c
authored
Sep 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Default to the user backend, falling back to curses if we can't create a window.
parent
47758240
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
curses.c
programs/wineconsole/curses.c
+2
-0
user.c
programs/wineconsole/user.c
+1
-1
wineconsole.c
programs/wineconsole/wineconsole.c
+12
-12
No files found.
programs/wineconsole/curses.c
View file @
d082517c
...
...
@@ -1016,6 +1016,8 @@ enum init_return WCCURSES_InitBackend(struct inner_data* data)
#else
enum
init_return
WCCURSES_InitBackend
(
struct
inner_data
*
data
)
{
WINE_ERR
(
"(n)curses was not found at configuration time.
\n
"
"If you want (n)curses support, please install relevant packages.
\n
"
);
return
init_not_supported
;
}
#endif
programs/wineconsole/user.c
View file @
d082517c
...
...
@@ -1437,7 +1437,7 @@ enum init_return WCUSER_InitBackend(struct inner_data* data)
CreateWindow
(
wndclass
.
lpszClassName
,
NULL
,
WS_OVERLAPPED
|
WS_CAPTION
|
WS_SYSMENU
|
WS_THICKFRAME
|
WS_MINIMIZEBOX
|
WS_HSCROLL
|
WS_VSCROLL
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
0
,
0
,
0
,
0
,
wndclass
.
hInstance
,
data
);
if
(
!
data
->
hWnd
)
return
init_
fail
ed
;
if
(
!
data
->
hWnd
)
return
init_
not_support
ed
;
return
init_success
;
}
programs/wineconsole/wineconsole.c
View file @
d082517c
...
...
@@ -656,9 +656,18 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
WINE_TRACE
(
"using hConOut %p
\n
"
,
data
->
hConOut
);
/* filling data->curcfg from cfg */
retry:
switch
((
*
backend
)(
data
))
{
case
init_not_supported
:
if
(
backend
==
WCCURSES_InitBackend
)
{
if
(
WCUSER_InitBackend
(
data
)
!=
init_success
)
break
;
}
else
if
(
backend
==
WCUSER_InitBackend
)
{
if
(
WCCURSES_InitBackend
(
data
)
!=
init_success
)
break
;
}
/* fall through */
case
init_success
:
WINECON_GetServerConfig
(
data
);
data
->
cells
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
...
...
@@ -684,16 +693,6 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
return
data
;
case
init_failed
:
break
;
case
init_not_supported
:
if
(
backend
==
WCCURSES_InitBackend
)
{
WINE_ERR
(
"(n)curses was not found at configuration time.
\n
"
"If you want (n)curses support, please install relevant packages.
\n
"
"Now forcing user backend instead of (n)curses.
\n
"
);
backend
=
WCUSER_InitBackend
;
goto
retry
;
}
break
;
}
error:
...
...
@@ -768,7 +767,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci)
memset
(
wci
,
0
,
sizeof
(
*
wci
));
wci
->
ptr
=
lpCmdLine
;
wci
->
mode
=
from_process_name
;
wci
->
backend
=
WC
CURSES
_InitBackend
;
wci
->
backend
=
WC
USER
_InitBackend
;
for
(;;)
{
...
...
@@ -792,6 +791,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci)
}
else
if
(
strncmp
(
wci
->
ptr
+
10
,
"curses"
,
6
)
==
0
)
{
wci
->
backend
=
WCCURSES_InitBackend
;
wci
->
ptr
+=
16
;
}
else
...
...
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