Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5f062fcf
Commit
5f062fcf
authored
Dec 01, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Dec 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Remove pre-Mac OS X 10.7 workaround.
parent
9207927d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+1
-14
No files found.
dlls/winemac.drv/macdrv_main.c
View file @
5f062fcf
...
@@ -37,13 +37,6 @@
...
@@ -37,13 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
macdrv
);
WINE_DEFAULT_DEBUG_CHANNEL
(
macdrv
);
#ifndef kIOPMAssertionTypePreventUserIdleDisplaySleep
#define kIOPMAssertionTypePreventUserIdleDisplaySleep CFSTR("PreventUserIdleDisplaySleep")
#endif
#ifndef kCFCoreFoundationVersionNumber10_7
#define kCFCoreFoundationVersionNumber10_7 635.00
#endif
#define IS_OPTION_TRUE(ch) \
#define IS_OPTION_TRUE(ch) \
((ch) == 'y' || (ch) == 'Y' || (ch) == 't' || (ch) == 'T' || (ch) == '1')
((ch) == 'y' || (ch) == 'Y' || (ch) == 't' || (ch) == 'T' || (ch) == '1')
...
@@ -593,13 +586,7 @@ BOOL macdrv_SystemParametersInfo( UINT action, UINT int_param, void *ptr_param,
...
@@ -593,13 +586,7 @@ BOOL macdrv_SystemParametersInfo( UINT action, UINT int_param, void *ptr_param,
}
}
else
if
(
powerAssertion
==
kIOPMNullAssertionID
)
else
if
(
powerAssertion
==
kIOPMNullAssertionID
)
{
{
CFStringRef
assertName
;
IOPMAssertionCreateWithName
(
kIOPMAssertionTypePreventUserIdleDisplaySleep
,
kIOPMAssertionLevelOn
,
/*Are we running Lion or later?*/
if
(
kCFCoreFoundationVersionNumber
>=
kCFCoreFoundationVersionNumber10_7
)
assertName
=
kIOPMAssertionTypePreventUserIdleDisplaySleep
;
else
assertName
=
kIOPMAssertionTypeNoDisplaySleep
;
IOPMAssertionCreateWithName
(
assertName
,
kIOPMAssertionLevelOn
,
CFSTR
(
"Wine Process requesting no screen saver"
),
CFSTR
(
"Wine Process requesting no screen saver"
),
&
powerAssertion
);
&
powerAssertion
);
}
}
...
...
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