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
2a8958ec
Commit
2a8958ec
authored
May 13, 2010
by
Aric Stewart
Committed by
Alexandre Julliard
May 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use usp10 to optionally generate glyphs for bidi strings.
parent
745b5fe8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
61 deletions
+142
-61
bidi.c
dlls/gdi32/bidi.c
+132
-52
font.c
dlls/gdi32/font.c
+8
-7
gdi_private.h
dlls/gdi32/gdi_private.h
+2
-2
No files found.
dlls/gdi32/bidi.c
View file @
2a8958ec
This diff is collapsed.
Click to expand it.
dlls/gdi32/font.c
View file @
2a8958ec
...
...
@@ -1704,20 +1704,21 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
{
reordered_str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
WCHAR
));
BIDI_Reorder
(
str
,
count
,
GCP_REORDER
,
BIDI_Reorder
(
hdc
,
str
,
count
,
GCP_REORDER
,
((
flags
&
ETO_RTLREADING
)
!=
0
||
(
GetTextAlign
(
hdc
)
&
TA_RTLREADING
)
!=
0
)
?
WINE_GCPW_FORCE_RTL:
WINE_GCPW_FORCE_LTR
,
reordered_str
,
count
,
NULL
);
reordered_str
,
count
,
NULL
,
&
glyphs
);
flags
|=
ETO_IGNORELANGUAGE
;
if
(
glyphs
)
flags
|=
ETO_GLYPH_INDEX
;
}
else
if
(
flags
&
ETO_GLYPH_INDEX
)
glyphs
=
reordered_str
;
TRACE
(
"%p, %d, %d, %08x, %p, %s, %d, %p)
\n
"
,
hdc
,
x
,
y
,
flags
,
lprect
,
debugstr_wn
(
str
,
count
),
count
,
lpDx
);
if
(
flags
&
ETO_GLYPH_INDEX
)
glyphs
=
reordered_str
;
if
(
lprect
)
TRACE
(
"rect: %d,%d - %d,%d
\n
"
,
lprect
->
left
,
lprect
->
top
,
lprect
->
right
,
lprect
->
bottom
);
...
...
@@ -2872,8 +2873,8 @@ GetCharacterPlacementW(
}
}
else
{
BIDI_Reorder
(
lpString
,
uCount
,
dwFlags
,
WINE_GCPW_FORCE_LTR
,
lpResults
->
lpOutString
,
nSet
,
lpResults
->
lpOrder
);
BIDI_Reorder
(
NULL
,
lpString
,
uCount
,
dwFlags
,
WINE_GCPW_FORCE_LTR
,
lpResults
->
lpOutString
,
nSet
,
lpResults
->
lpOrder
,
NULL
);
}
/* FIXME: Will use the placement chars */
...
...
dlls/gdi32/gdi_private.h
View file @
2a8958ec
...
...
@@ -355,8 +355,8 @@ typedef struct tagBITMAPOBJ
#define WINE_GCPW_DIR_MASK 3
#define WINE_GCPW_LOOSE_MASK 2
extern
BOOL
BIDI_Reorder
(
LPCWSTR
lpString
,
INT
uCount
,
DWORD
dwFlags
,
DWORD
dwWineGCP_Flags
,
LPWSTR
lpOutString
,
INT
uCountOut
,
UINT
*
lpOrder
)
DECLSPEC_HIDDEN
;
extern
BOOL
BIDI_Reorder
(
HDC
hDC
,
LPCWSTR
lpString
,
INT
uCount
,
DWORD
dwFlags
,
DWORD
dwWineGCP_Flags
,
LPWSTR
lpOutString
,
INT
uCountOut
,
UINT
*
lpOrder
,
WORD
**
lpGlyphs
)
DECLSPEC_HIDDEN
;
/* bitmap.c */
extern
HBITMAP
BITMAP_CopyBitmap
(
HBITMAP
hbitmap
)
DECLSPEC_HIDDEN
;
...
...
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