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
3e86d430
Commit
3e86d430
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 GdipMeasureString.
parent
867f3d39
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 @
3e86d430
...
...
@@ -3918,6 +3918,7 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
{
HFONT
oldfont
;
struct
measure_string_args
args
;
HDC
temp_hdc
=
NULL
;
TRACE
(
"(%p, %s, %i, %p, %s, %p, %p, %p, %p)
\n
"
,
graphics
,
debugstr_wn
(
string
,
length
),
length
,
font
,
debugstr_rectf
(
rect
),
format
,
...
...
@@ -3928,8 +3929,8 @@ GpStatus WINGDIPAPI GdipMeasureString(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
(
linesfilled
)
*
linesfilled
=
0
;
...
...
@@ -3954,6 +3955,12 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
DeleteObject
(
SelectObject
(
graphics
->
hdc
,
oldfont
));
if
(
temp_hdc
)
{
graphics
->
hdc
=
NULL
;
DeleteDC
(
temp_hdc
);
}
return
Ok
;
}
...
...
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