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
b6f5bdb7
Commit
b6f5bdb7
authored
May 12, 2023
by
Brendan Shanks
Committed by
Alexandre Julliard
May 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Work around poor-quality downscaling in high-res/retina mode on macOS 10.13 and earlier.
parent
fcd2a5f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
cocoa_window.m
dlls/winemac.drv/cocoa_window.m
+16
-0
No files found.
dlls/winemac.drv/cocoa_window.m
View file @
b6f5bdb7
...
...
@@ -680,6 +680,22 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
[
self
layer
].
contentsScale
=
mode
?
2
.
0
:
1
.
0
;
[
self
layer
].
minificationFilter
=
mode
?
kCAFilterLinear
:
kCAFilterNearest
;
[
self
layer
].
magnificationFilter
=
mode
?
kCAFilterLinear
:
kCAFilterNearest
;
/* On macOS 10.13 and earlier, the desired minificationFilter seems to be
* ignored and "nearest" filtering is used, which looks terrible.
* Enabling rasterization seems to work around this, only enable
* it when there may be down-scaling (retina mode enabled).
*/
if
(
floor
(
NSAppKitVersionNumber
)
<
1671
/*NSAppKitVersionNumber10_14*/
)
{
if
(
mode
)
{
[
self
layer
].
shouldRasterize
=
YES
;
[
self
layer
].
rasterizationScale
=
2
.
0
;
}
else
[
self
layer
].
shouldRasterize
=
NO
;
}
}
-
(
void
)
setRetinaMode
:
(
int
)
mode
...
...
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