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
8cd44ecf
Commit
8cd44ecf
authored
Dec 06, 2019
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Dec 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Avoid some compiler warnings.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fa38f34b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+4
-5
display.c
dlls/winemac.drv/display.c
+3
-4
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
8cd44ecf
...
...
@@ -769,9 +769,9 @@ static NSString* WineLocalizedString(unsigned int stringID)
if
(
CGDisplayModeGetHeight
(
mode1
)
!=
CGDisplayModeGetHeight
(
mode2
))
return
FALSE
;
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
if
(
CGDisplayModeGetPixelWidth
!=
NULL
&&
if
(
&
CGDisplayModeGetPixelWidth
!=
NULL
&&
CGDisplayModeGetPixelWidth
(
mode1
)
!=
CGDisplayModeGetPixelWidth
(
mode2
))
return
FALSE
;
if
(
CGDisplayModeGetPixelHeight
!=
NULL
&&
if
(
&
CGDisplayModeGetPixelHeight
!=
NULL
&&
CGDisplayModeGetPixelHeight
(
mode1
)
!=
CGDisplayModeGetPixelHeight
(
mode2
))
return
FALSE
;
#endif
...
...
@@ -801,9 +801,8 @@ static NSString* WineLocalizedString(unsigned int stringID)
NSDictionary
*
options
=
nil
;
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
if
(
&
kCGDisplayShowDuplicateLowResolutionModes
!=
NULL
)
options
=
[
NSDictionary
dictionaryWithObject
:[
NSNumber
numberWithBool
:
TRUE
]
forKey
:(
NSString
*
)
kCGDisplayShowDuplicateLowResolutionModes
];
options
=
[
NSDictionary
dictionaryWithObject
:[
NSNumber
numberWithBool
:
TRUE
]
forKey
:(
NSString
*
)
kCGDisplayShowDuplicateLowResolutionModes
];
#endif
NSArray
*
modes
=
[(
NSArray
*
)
CGDisplayCopyAllDisplayModes
(
displayID
,
(
CFDictionaryRef
)
options
)
autorelease
];
...
...
dlls/winemac.drv/display.c
View file @
8cd44ecf
...
...
@@ -268,7 +268,7 @@ static BOOL write_display_settings(HKEY parent_hkey, CGDirectDisplayID displayID
goto
fail
;
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
if
(
CGDisplayModeGetPixelWidth
!=
NULL
&&
CGDisplayModeGetPixelHeight
!=
NULL
)
if
(
&
CGDisplayModeGetPixelWidth
!=
NULL
&&
&
CGDisplayModeGetPixelHeight
!=
NULL
)
{
val
=
CGDisplayModeGetPixelWidth
(
display_mode
);
if
(
RegSetValueExA
(
display_hkey
,
"PixelWidth"
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
val
,
sizeof
(
val
)))
...
...
@@ -456,7 +456,7 @@ static BOOL display_mode_matches_descriptor(CGDisplayModeRef mode, const struct
return
FALSE
;
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
if
(
CGDisplayModeGetPixelWidth
!=
NULL
&&
CGDisplayModeGetPixelHeight
!=
NULL
)
if
(
&
CGDisplayModeGetPixelWidth
!=
NULL
&&
&
CGDisplayModeGetPixelHeight
!=
NULL
)
{
if
(
CGDisplayModeGetPixelWidth
(
mode
)
!=
desc
->
pixel_width
||
CGDisplayModeGetPixelHeight
(
mode
)
!=
desc
->
pixel_height
)
...
...
@@ -616,8 +616,7 @@ static CFArrayRef copy_display_modes(CGDirectDisplayID display)
CFArrayRef
modes
=
NULL
;
#if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
if
(
&
kCGDisplayShowDuplicateLowResolutionModes
!=
NULL
&&
CGDisplayModeGetPixelWidth
!=
NULL
&&
CGDisplayModeGetPixelHeight
!=
NULL
)
if
(
&
CGDisplayModeGetPixelWidth
!=
NULL
&&
&
CGDisplayModeGetPixelHeight
!=
NULL
)
{
CFDictionaryRef
options
;
struct
display_mode_descriptor
*
desc
;
...
...
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