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
2100d3e1
Commit
2100d3e1
authored
May 13, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
May 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Allocate fake hwnds for curses backend.
Based on a patch by Qian Hong.
parent
1d91c844
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
curses.c
programs/wineconsole/curses.c
+5
-1
No files found.
programs/wineconsole/curses.c
View file @
2100d3e1
...
...
@@ -1001,6 +1001,7 @@ static void WCCURSES_DeleteBackend(struct inner_data* data)
#endif
endwin
();
if
(
data
->
hWnd
)
DestroyWindow
(
data
->
hWnd
);
HeapFree
(
GetProcessHeap
(),
0
,
PRIVATE
(
data
)
->
line
);
HeapFree
(
GetProcessHeap
(),
0
,
PRIVATE
(
data
));
data
->
private
=
NULL
;
...
...
@@ -1042,6 +1043,8 @@ static int WCCURSES_MainLoop(struct inner_data* data)
*/
enum
init_return
WCCURSES_InitBackend
(
struct
inner_data
*
data
)
{
static
const
WCHAR
messageW
[]
=
{
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
0
};
if
(
!
WCCURSES_bind_libcurses
()
)
return
init_not_supported
;
...
...
@@ -1058,7 +1061,8 @@ enum init_return WCCURSES_InitBackend(struct inner_data* data)
data
->
fnScroll
=
WCCURSES_Scroll
;
data
->
fnSetFont
=
WCCURSES_SetFont
;
data
->
fnDeleteBackend
=
WCCURSES_DeleteBackend
;
data
->
hWnd
=
NULL
;
data
->
hWnd
=
CreateWindowW
(
messageW
,
NULL
,
0
,
0
,
0
,
0
,
0
,
HWND_MESSAGE
,
0
,
GetModuleHandleW
(
0
),
NULL
);
/* FIXME: should find a good way to enable buffer scrolling
* For the time being, setting this to 1 will allow scrolling up/down
...
...
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