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
64841aac
Commit
64841aac
authored
Apr 04, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Respect the CmapLookup flag in GDI32_GdipDrawDriverString.
parent
11f0662c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
graphics.c
dlls/gdiplus/graphics.c
+6
-2
No files found.
dlls/gdiplus/graphics.c
View file @
64841aac
...
...
@@ -5620,10 +5620,11 @@ static GpStatus GDI32_GdipDrawDriverString(GpGraphics *graphics, GDIPCONST UINT1
GDIPCONST
PointF
*
positions
,
INT
flags
,
GDIPCONST
GpMatrix
*
matrix
)
{
static
const
INT
unsupported_flags
=
~
(
DriverStringOptionsRealizedAdvance
);
static
const
INT
unsupported_flags
=
~
(
DriverStringOptionsRealizedAdvance
|
DriverStringOptionsCmapLookup
);
INT
save_state
;
GpPointF
pt
;
HFONT
hfont
;
UINT
eto_flags
=
0
;
if
(
flags
&
unsupported_flags
)
FIXME
(
"Ignoring flags %x
\n
"
,
flags
&
unsupported_flags
);
...
...
@@ -5631,6 +5632,9 @@ static GpStatus GDI32_GdipDrawDriverString(GpGraphics *graphics, GDIPCONST UINT1
if
(
matrix
)
FIXME
(
"Ignoring matrix
\n
"
);
if
(
!
(
flags
&
DriverStringOptionsCmapLookup
))
eto_flags
|=
ETO_GLYPH_INDEX
;
save_state
=
SaveDC
(
graphics
->
hdc
);
SetBkMode
(
graphics
->
hdc
,
TRANSPARENT
);
SetTextColor
(
graphics
->
hdc
,
brush
->
lb
.
lbColor
);
...
...
@@ -5643,7 +5647,7 @@ static GpStatus GDI32_GdipDrawDriverString(GpGraphics *graphics, GDIPCONST UINT1
SetTextAlign
(
graphics
->
hdc
,
TA_BASELINE
|
TA_LEFT
);
ExtTextOutW
(
graphics
->
hdc
,
roundr
(
pt
.
X
),
roundr
(
pt
.
Y
),
ETO_GLYPH_INDEX
,
NULL
,
text
,
length
,
NULL
);
ExtTextOutW
(
graphics
->
hdc
,
roundr
(
pt
.
X
),
roundr
(
pt
.
Y
),
eto_flags
,
NULL
,
text
,
length
,
NULL
);
RestoreDC
(
graphics
->
hdc
,
save_state
);
...
...
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