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
87dd1315
Commit
87dd1315
authored
Aug 20, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Aug 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Make cgrect_from_rect() preserve origin of empty rectangles.
parent
21e0f739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-3
No files found.
dlls/winemac.drv/macdrv.h
View file @
87dd1315
...
...
@@ -44,9 +44,7 @@ extern const char* debugstr_cf(CFTypeRef t) DECLSPEC_HIDDEN;
static
inline
CGRect
cgrect_from_rect
(
RECT
rect
)
{
if
(
rect
.
left
>=
rect
.
right
||
rect
.
top
>=
rect
.
bottom
)
return
CGRectNull
;
return
CGRectMake
(
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
);
return
CGRectMake
(
rect
.
left
,
rect
.
top
,
max
(
0
,
rect
.
right
-
rect
.
left
),
max
(
0
,
rect
.
bottom
-
rect
.
top
));
}
static
inline
RECT
rect_from_cgrect
(
CGRect
cgrect
)
...
...
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