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
5601860b
Commit
5601860b
authored
Aug 08, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Don't require an HDC in get_graphics_bounds.
parent
85a57106
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
graphics.c
dlls/gdiplus/graphics.c
+7
-1
No files found.
dlls/gdiplus/graphics.c
View file @
5601860b
...
...
@@ -1137,6 +1137,8 @@ static GpStatus restore_container(GpGraphics* graphics,
static
GpStatus
get_graphics_bounds
(
GpGraphics
*
graphics
,
GpRectF
*
rect
)
{
RECT
wnd_rect
;
GpStatus
stat
=
Ok
;
GpUnit
unit
;
if
(
graphics
->
hwnd
)
{
if
(
!
GetClientRect
(
graphics
->
hwnd
,
&
wnd_rect
))
...
...
@@ -1146,6 +1148,10 @@ static GpStatus get_graphics_bounds(GpGraphics* graphics, GpRectF* rect)
rect
->
Y
=
wnd_rect
.
top
;
rect
->
Width
=
wnd_rect
.
right
-
wnd_rect
.
left
;
rect
->
Height
=
wnd_rect
.
bottom
-
wnd_rect
.
top
;
}
else
if
(
graphics
->
image
){
stat
=
GdipGetImageBounds
(
graphics
->
image
,
rect
,
&
unit
);
if
(
stat
==
Ok
&&
unit
!=
UnitPixel
)
FIXME
(
"need to convert from unit %i
\n
"
,
unit
);
}
else
{
rect
->
X
=
0
;
rect
->
Y
=
0
;
...
...
@@ -1153,7 +1159,7 @@ static GpStatus get_graphics_bounds(GpGraphics* graphics, GpRectF* rect)
rect
->
Height
=
GetDeviceCaps
(
graphics
->
hdc
,
VERTRES
);
}
return
Ok
;
return
stat
;
}
/* on success, rgn will contain the region of the graphics object which
...
...
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