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
f2068ec4
Commit
f2068ec4
authored
May 03, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't bother computing the gamma ramp when not used.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ea50d41b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
font.c
dlls/gdi32/font.c
+6
-3
No files found.
dlls/gdi32/font.c
View file @
f2068ec4
...
...
@@ -4009,10 +4009,13 @@ static void init_font_options(void)
This looks roughly similar to Windows Native with the same registry value.
MS GDI seems to be rasterizing the outline at a different rate than FreeType. */
gamma
=
1000
*
gamma
/
1400
;
for
(
i
=
0
;
i
<
256
;
i
++
)
if
(
gamma
!=
1000
)
{
font_gamma_ramp
.
encode
[
i
]
=
pow
(
i
/
255
.,
1000
.
/
gamma
)
*
255
.
+
.
5
;
font_gamma_ramp
.
decode
[
i
]
=
pow
(
i
/
255
.,
gamma
/
1000
.
)
*
255
.
+
.
5
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
font_gamma_ramp
.
encode
[
i
]
=
pow
(
i
/
255
.,
1000
.
/
gamma
)
*
255
.
+
.
5
;
font_gamma_ramp
.
decode
[
i
]
=
pow
(
i
/
255
.,
gamma
/
1000
.
)
*
255
.
+
.
5
;
}
}
font_gamma_ramp
.
gamma
=
gamma
;
TRACE
(
"gamma %d
\n
"
,
font_gamma_ramp
.
gamma
);
...
...
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