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
b5a405af
Commit
b5a405af
authored
Nov 02, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove a basically unused variable (PVS-Studio).
parent
4a67e66a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
freetype.c
dlls/gdi32/freetype.c
+11
-15
No files found.
dlls/gdi32/freetype.c
View file @
b5a405af
...
...
@@ -6937,7 +6937,6 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
INT
x
,
src_pitch
,
src_width
,
src_height
,
rgb_interval
,
hmul
,
vmul
;
INT
x_shift
,
y_shift
;
BOOL
rgb
;
FT_LcdFilter
lcdfilter
=
FT_LCD_FILTER_DEFAULT
;
FT_Render_Mode
render_mode
=
(
format
==
WINE_GGO_HRGB_BITMAP
||
format
==
WINE_GGO_HBGR_BITMAP
)
?
FT_RENDER_MODE_LCD:
FT_RENDER_MODE_LCD_V
;
...
...
@@ -6948,20 +6947,17 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
return
GDI_ERROR
;
}
if
(
lcdfilter
==
FT_LCD_FILTER_DEFAULT
||
lcdfilter
==
FT_LCD_FILTER_LIGHT
)
if
(
render_mode
==
FT_RENDER_MODE_LCD
)
{
if
(
render_mode
==
FT_RENDER_MODE_LCD
)
{
gm
.
gmBlackBoxX
+=
2
;
gm
.
gmptGlyphOrigin
.
x
-=
1
;
left
-=
(
1
<<
6
);
}
else
{
gm
.
gmBlackBoxY
+=
2
;
gm
.
gmptGlyphOrigin
.
y
+=
1
;
top
+=
(
1
<<
6
);
}
gm
.
gmBlackBoxX
+=
2
;
gm
.
gmptGlyphOrigin
.
x
-=
1
;
left
-=
(
1
<<
6
);
}
else
{
gm
.
gmBlackBoxY
+=
2
;
gm
.
gmptGlyphOrigin
.
y
+=
1
;
top
+=
(
1
<<
6
);
}
width
=
gm
.
gmBlackBoxX
;
...
...
@@ -6981,7 +6977,7 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
pFT_Outline_Transform
(
&
ft_face
->
glyph
->
outline
,
&
transMatTategaki
);
if
(
pFT_Library_SetLcdFilter
)
pFT_Library_SetLcdFilter
(
library
,
lcdfilter
);
pFT_Library_SetLcdFilter
(
library
,
FT_LCD_FILTER_DEFAULT
);
pFT_Render_Glyph
(
ft_face
->
glyph
,
render_mode
);
src
=
ft_face
->
glyph
->
bitmap
.
buffer
;
...
...
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