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
4c3cc501
Commit
4c3cc501
authored
Jul 02, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix bitmap glyph allocation size in ExtTextOut fallback implementation.
parent
8309a38d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
font.c
dlls/gdi32/font.c
+4
-3
No files found.
dlls/gdi32/font.c
View file @
4c3cc501
...
...
@@ -1799,7 +1799,7 @@ static void draw_glyph( HDC hdc, INT origin_x, INT origin_y, const GLYPHMETRICS
const
struct
gdi_image_bits
*
image
,
const
RECT
*
clip
)
{
static
const
BYTE
masks
[
8
]
=
{
0x80
,
0x40
,
0x20
,
0x10
,
0x08
,
0x04
,
0x02
,
0x01
};
UINT
x
,
y
,
i
,
count
;
UINT
x
,
y
,
i
,
count
,
max_count
;
BYTE
*
ptr
=
image
->
ptr
;
int
stride
=
get_dib_stride
(
metrics
->
gmBlackBoxX
,
1
);
POINT
*
pts
;
...
...
@@ -1812,8 +1812,8 @@ static void draw_glyph( HDC hdc, INT origin_x, INT origin_y, const GLYPHMETRICS
if
(
!
clip
)
clipped_rect
=
rect
;
else
if
(
!
intersect_rect
(
&
clipped_rect
,
&
rect
,
clip
))
return
;
pts
=
HeapAlloc
(
GetProcessHeap
(),
0
,
max
(
2
,
metrics
->
gmBlackBoxX
)
*
metrics
->
gmBlackBoxY
*
sizeof
(
*
pts
)
);
max_count
=
(
metrics
->
gmBlackBoxX
+
1
)
*
metrics
->
gmBlackBoxY
;
pts
=
HeapAlloc
(
GetProcessHeap
(),
0
,
max_count
*
sizeof
(
*
pts
)
);
if
(
!
pts
)
return
;
count
=
0
;
...
...
@@ -1833,6 +1833,7 @@ static void draw_glyph( HDC hdc, INT origin_x, INT origin_y, const GLYPHMETRICS
}
}
}
assert
(
count
<=
max_count
);
DPtoLP
(
hdc
,
pts
,
count
);
for
(
i
=
0
;
i
<
count
;
i
+=
2
)
Polyline
(
hdc
,
pts
+
i
,
2
);
HeapFree
(
GetProcessHeap
(),
0
,
pts
);
...
...
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