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
3f845b34
Commit
3f845b34
authored
Sep 01, 2021
by
Chip Davis
Committed by
Alexandre Julliard
Sep 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac.drv: Remove now unused -[WineContentView drawRect:].
Signed-off-by:
Chip Davis
<
cdavis@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e599a89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
64 deletions
+0
-64
cocoa_window.m
dlls/winemac.drv/cocoa_window.m
+0
-64
No files found.
dlls/winemac.drv/cocoa_window.m
View file @
3f845b34
...
...
@@ -556,70 +556,6 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
[
pendingGlContexts
removeAllObjects
];
}
-
(
void
)
drawRect
:
(
NSRect
)
rect
{
WineWindow
*
window
=
(
WineWindow
*
)[
self
window
];
if
([
window
contentView
]
!=
self
)
return
;
if
(
window
.
surface
&&
window
.
surface_mutex
&&
!
pthread_mutex_lock
(
window
.
surface_mutex
))
{
const
CGRect
*
rects
;
int
count
;
if
(
get_surface_blit_rects
(
window
.
surface
,
&
rects
,
&
count
))
{
CGRect
dirtyRect
=
cgrect_win_from_mac
(
NSRectToCGRect
(
rect
));
NSAffineTransform
*
xform
=
[
NSAffineTransform
transform
];
CGContextRef
context
;
int
i
;
[
xform
translateXBy
:
0
.
0
yBy
:
self
.
bounds
.
size
.
height
];
[
xform
scaleXBy
:
1
.
0
yBy
:
-
1
.
0
];
[
xform
concat
];
context
=
(
CGContextRef
)[[
NSGraphicsContext
currentContext
]
graphicsPort
];
CGContextSetBlendMode
(
context
,
kCGBlendModeCopy
);
CGContextSetInterpolationQuality
(
context
,
retina_on
?
kCGInterpolationHigh
:
kCGInterpolationNone
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
CGRect
imageRect
;
CGImageRef
image
;
imageRect
=
CGRectIntersection
(
rects
[
i
],
dirtyRect
);
image
=
create_surface_image
(
window
.
surface
,
&
imageRect
,
FALSE
,
window
.
colorKeyed
,
window
.
colorKeyRed
,
window
.
colorKeyGreen
,
window
.
colorKeyBlue
);
if
(
image
)
{
// Account for the flipped coordinate system.
imageRect
=
cgrect_mac_from_win
(
imageRect
);
imageRect
.
origin
.
y
=
self
.
bounds
.
size
.
height
-
imageRect
.
origin
.
y
-
imageRect
.
size
.
height
;
CGContextDrawImage
(
context
,
imageRect
,
image
);
CGImageRelease
(
image
);
}
}
[
window
windowDidDrawContent
];
}
pthread_mutex_unlock
(
window
.
surface_mutex
);
}
// If the window may be transparent, then we have to invalidate the
// shadow every time we draw. Also, if this is the first time we've
// drawn since changing from transparent to opaque.
if
(
window
.
drawnSinceShown
&&
(
window
.
colorKeyed
||
window
.
usePerPixelAlpha
||
window
.
shapeChangedSinceLastDraw
))
{
window
.
shapeChangedSinceLastDraw
=
FALSE
;
[
window
invalidateShadow
];
}
}
-
(
void
)
addGLContext
:
(
WineOpenGLContext
*
)
context
{
BOOL
hadContext
=
_everHadGLContext
;
...
...
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