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
7bd86238
Commit
7bd86238
authored
Aug 09, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Handle empty strings when building vertical runs.
parent
6fb4e062
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
text.c
dlls/wineps.drv/text.c
+3
-2
No files found.
dlls/wineps.drv/text.c
View file @
7bd86238
...
...
@@ -91,15 +91,16 @@ static BOOL check_unicode_tategaki(WCHAR uchar)
static
Run
*
build_vertical_runs
(
PHYSDEV
dev
,
UINT
flags
,
LPCWSTR
str
,
UINT
count
,
INT
*
run_count
)
{
BOOL
last_vert
=
check_unicode_tategaki
(
str
[
0
])
;
BOOL
last_vert
;
INT
start
,
end
;
INT
array_size
=
5
;
Run
*
run
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
Run
)
*
array_size
);
int
index
=
0
;
LOGFONTW
lf
;
if
((
!
(
flags
&
ETO_GLYPH_INDEX
))
&&
GetObjectW
(
GetCurrentObject
(
dev
->
hdc
,
OBJ_FONT
),
sizeof
(
lf
),
&
lf
)
&&
(
lf
.
lfFaceName
[
0
]
==
'@'
))
if
(
count
&&
str
&&
(
!
(
flags
&
ETO_GLYPH_INDEX
))
&&
GetObjectW
(
GetCurrentObject
(
dev
->
hdc
,
OBJ_FONT
),
sizeof
(
lf
),
&
lf
)
&&
(
lf
.
lfFaceName
[
0
]
==
'@'
))
{
last_vert
=
check_unicode_tategaki
(
str
[
0
]);
start
=
end
=
0
;
while
(
start
<
count
)
{
...
...
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