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
867f3d39
Commit
867f3d39
authored
Oct 30, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Don't rely on an HDC in GdipMeasureCharacterRanges.
parent
cb21d1ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
graphics.c
dlls/gdiplus/graphics.c
+9
-2
No files found.
dlls/gdiplus/graphics.c
View file @
867f3d39
...
...
@@ -3834,6 +3834,7 @@ GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics* graphics,
int
i
;
HFONT
oldfont
;
struct
measure_ranges_args
args
;
HDC
temp_hdc
=
NULL
;
TRACE
(
"(%p %s %d %p %s %p %d %p)
\n
"
,
graphics
,
debugstr_w
(
string
),
length
,
font
,
debugstr_rectf
(
layoutRect
),
stringFormat
,
regionCount
,
regions
);
...
...
@@ -3846,8 +3847,8 @@ GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics* graphics,
if
(
!
graphics
->
hdc
)
{
FIXME
(
"graphics object has no HDC
\n
"
);
return
NotImplemented
;
temp_hdc
=
graphics
->
hdc
=
CreateCompatibleDC
(
0
);
if
(
!
temp_hdc
)
return
OutOfMemory
;
}
if
(
stringFormat
->
attr
)
...
...
@@ -3869,6 +3870,12 @@ GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics* graphics,
DeleteObject
(
SelectObject
(
graphics
->
hdc
,
oldfont
));
if
(
temp_hdc
)
{
graphics
->
hdc
=
NULL
;
DeleteDC
(
temp_hdc
);
}
return
stat
;
}
...
...
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