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
788e2034
Commit
788e2034
authored
Nov 21, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Add support for a "Decorated" registry setting to control whether…
winemac: Add support for a "Decorated" registry setting to control whether windows get Mac-style decorations.
parent
1e78c993
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-0
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+5
-0
window.c
dlls/winemac.drv/window.c
+1
-0
No files found.
dlls/winemac.drv/macdrv.h
View file @
788e2034
...
@@ -39,6 +39,7 @@ extern BOOL skip_single_buffer_flushes DECLSPEC_HIDDEN;
...
@@ -39,6 +39,7 @@ extern BOOL skip_single_buffer_flushes DECLSPEC_HIDDEN;
extern
BOOL
allow_vsync
DECLSPEC_HIDDEN
;
extern
BOOL
allow_vsync
DECLSPEC_HIDDEN
;
extern
BOOL
allow_set_gamma
DECLSPEC_HIDDEN
;
extern
BOOL
allow_set_gamma
DECLSPEC_HIDDEN
;
extern
BOOL
allow_software_rendering
DECLSPEC_HIDDEN
;
extern
BOOL
allow_software_rendering
DECLSPEC_HIDDEN
;
extern
BOOL
disable_window_decorations
DECLSPEC_HIDDEN
;
extern
HMODULE
macdrv_module
DECLSPEC_HIDDEN
;
extern
HMODULE
macdrv_module
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_main.c
View file @
788e2034
...
@@ -53,6 +53,7 @@ BOOL allow_set_gamma = TRUE;
...
@@ -53,6 +53,7 @@ BOOL allow_set_gamma = TRUE;
int
left_option_is_alt
=
0
;
int
left_option_is_alt
=
0
;
int
right_option_is_alt
=
0
;
int
right_option_is_alt
=
0
;
BOOL
allow_software_rendering
=
FALSE
;
BOOL
allow_software_rendering
=
FALSE
;
BOOL
disable_window_decorations
=
FALSE
;
HMODULE
macdrv_module
=
0
;
HMODULE
macdrv_module
=
0
;
...
@@ -166,6 +167,10 @@ static void setup_options(void)
...
@@ -166,6 +167,10 @@ static void setup_options(void)
if
(
!
get_config_key
(
hkey
,
appkey
,
"AllowSoftwareRendering"
,
buffer
,
sizeof
(
buffer
)))
if
(
!
get_config_key
(
hkey
,
appkey
,
"AllowSoftwareRendering"
,
buffer
,
sizeof
(
buffer
)))
allow_software_rendering
=
IS_OPTION_TRUE
(
buffer
[
0
]);
allow_software_rendering
=
IS_OPTION_TRUE
(
buffer
[
0
]);
/* Value name chosen to match what's used in the X11 driver. */
if
(
!
get_config_key
(
hkey
,
appkey
,
"Decorated"
,
buffer
,
sizeof
(
buffer
)))
disable_window_decorations
=
!
IS_OPTION_TRUE
(
buffer
[
0
]);
if
(
appkey
)
RegCloseKey
(
appkey
);
if
(
appkey
)
RegCloseKey
(
appkey
);
if
(
hkey
)
RegCloseKey
(
hkey
);
if
(
hkey
)
RegCloseKey
(
hkey
);
}
}
...
...
dlls/winemac.drv/window.c
View file @
788e2034
...
@@ -57,6 +57,7 @@ static void get_cocoa_window_features(struct macdrv_win_data *data,
...
@@ -57,6 +57,7 @@ static void get_cocoa_window_features(struct macdrv_win_data *data,
{
{
memset
(
wf
,
0
,
sizeof
(
*
wf
));
memset
(
wf
,
0
,
sizeof
(
*
wf
));
if
(
disable_window_decorations
)
return
;
if
(
IsRectEmpty
(
&
data
->
window_rect
))
return
;
if
(
IsRectEmpty
(
&
data
->
window_rect
))
return
;
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
&&
!
(
ex_style
&
WS_EX_LAYERED
))
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
&&
!
(
ex_style
&
WS_EX_LAYERED
))
...
...
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