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
9c6d0f6e
Commit
9c6d0f6e
authored
Jul 10, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Use IOCTL_CONDRV_SET_OUTPUT_INFO in WINECON_SetColors.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6695ca86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
wineconsole.c
programs/wineconsole/wineconsole.c
+6
-11
No files found.
programs/wineconsole/wineconsole.c
View file @
9c6d0f6e
...
...
@@ -218,20 +218,15 @@ static BOOL WINECON_SetEditionMode(HANDLE hConIn, int edition_mode)
*/
static
void
WINECON_SetColors
(
struct
inner_data
*
data
,
const
struct
config_data
*
cfg
)
{
size_t
color_map_size
=
sizeof
(
data
->
curcfg
.
color_map
);
struct
condrv_output_info_params
params
=
{
SET_CONSOLE_OUTPUT_INFO_COLORTABLE
|
SET_CONSOLE_OUTPUT_INFO_POPUP_ATTR
};
memcpy
(
data
->
curcfg
.
color_map
,
cfg
->
color_map
,
color_map_size
);
memcpy
(
data
->
curcfg
.
color_map
,
cfg
->
color_map
,
sizeof
(
data
->
curcfg
.
color_map
)
);
data
->
curcfg
.
popup_attr
=
cfg
->
popup_attr
;
SERVER_START_REQ
(
set_console_output_info
)
{
req
->
handle
=
wine_server_obj_handle
(
data
->
hConOut
);
req
->
mask
=
SET_CONSOLE_OUTPUT_INFO_COLORTABLE
|
SET_CONSOLE_OUTPUT_INFO_POPUP_ATTR
;
req
->
popup_attr
=
cfg
->
popup_attr
;
wine_server_add_data
(
req
,
cfg
->
color_map
,
color_map_size
);
wine_server_call
(
req
);
}
SERVER_END_REQ
;
params
.
info
.
popup_attr
=
cfg
->
popup_attr
;
memcpy
(
params
.
info
.
color_map
,
cfg
->
color_map
,
sizeof
(
cfg
->
color_map
));
DeviceIoControl
(
data
->
hConOut
,
IOCTL_CONDRV_SET_OUTPUT_INFO
,
&
params
,
sizeof
(
params
),
NULL
,
0
,
NULL
,
NULL
);
}
/******************************************************************
...
...
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