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
4f23821f
Commit
4f23821f
authored
Jul 08, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Jul 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Add registry setting to control setting display gamma ramp.
parent
6120b3d5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
display.c
dlls/winemac.drv/display.c
+6
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-0
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+4
-0
No files found.
dlls/winemac.drv/display.c
View file @
4f23821f
...
...
@@ -797,6 +797,12 @@ BOOL macdrv_SetDeviceGammaRamp(PHYSDEV dev, LPVOID ramp)
TRACE
(
"dev %p ramp %p
\n
"
,
dev
,
ramp
);
if
(
!
allow_set_gamma
)
{
TRACE
(
"disallowed by registry setting
\n
"
);
return
FALSE
;
}
if
(
macdrv_get_displays
(
&
displays
,
&
num_displays
))
{
WARN
(
"failed to get Mac displays
\n
"
);
...
...
dlls/winemac.drv/macdrv.h
View file @
4f23821f
...
...
@@ -37,6 +37,7 @@
extern
BOOL
skip_single_buffer_flushes
DECLSPEC_HIDDEN
;
extern
BOOL
allow_vsync
DECLSPEC_HIDDEN
;
extern
BOOL
allow_set_gamma
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_cf
(
CFTypeRef
t
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_main.c
View file @
4f23821f
...
...
@@ -49,6 +49,7 @@ int topmost_float_inactive = TOPMOST_FLOAT_INACTIVE_NONFULLSCREEN;
int
capture_displays_for_fullscreen
=
0
;
BOOL
skip_single_buffer_flushes
=
FALSE
;
BOOL
allow_vsync
=
TRUE
;
BOOL
allow_set_gamma
=
TRUE
;
/**************************************************************************
...
...
@@ -164,6 +165,9 @@ static void setup_options(void)
if
(
!
get_config_key
(
hkey
,
appkey
,
"AllowVerticalSync"
,
buffer
,
sizeof
(
buffer
)))
allow_vsync
=
IS_OPTION_TRUE
(
buffer
[
0
]);
if
(
!
get_config_key
(
hkey
,
appkey
,
"AllowSetGamma"
,
buffer
,
sizeof
(
buffer
)))
allow_set_gamma
=
IS_OPTION_TRUE
(
buffer
[
0
]);
if
(
appkey
)
RegCloseKey
(
appkey
);
if
(
hkey
)
RegCloseKey
(
hkey
);
}
...
...
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