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
e72defc8
Commit
e72defc8
authored
Aug 20, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Do not call IPicture_Render directly from GdipDrawImageI.
parent
69ba1415
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
graphics.c
dlls/gdiplus/graphics.c
+17
-22
No files found.
dlls/gdiplus/graphics.c
View file @
e72defc8
...
@@ -1734,18 +1734,10 @@ GpStatus WINGDIPAPI GdipDrawEllipseI(GpGraphics *graphics, GpPen *pen, INT x,
...
@@ -1734,18 +1734,10 @@ GpStatus WINGDIPAPI GdipDrawEllipseI(GpGraphics *graphics, GpPen *pen, INT x,
GpStatus
WINGDIPAPI
GdipDrawImage
(
GpGraphics
*
graphics
,
GpImage
*
image
,
REAL
x
,
REAL
y
)
GpStatus
WINGDIPAPI
GdipDrawImage
(
GpGraphics
*
graphics
,
GpImage
*
image
,
REAL
x
,
REAL
y
)
{
{
TRACE
(
"(%p, %p, %.2f, %.2f)
\n
"
,
graphics
,
image
,
x
,
y
);
UINT
width
,
height
;
GpPointF
points
[
3
];
/* IPicture::Render uses LONG coords */
return
GdipDrawImageI
(
graphics
,
image
,
roundr
(
x
),
roundr
(
y
));
}
GpStatus
WINGDIPAPI
GdipDrawImageI
(
GpGraphics
*
graphics
,
GpImage
*
image
,
INT
x
,
INT
y
)
{
UINT
width
,
height
,
srcw
,
srch
;
TRACE
(
"(%p, %p, %
d, %d
)
\n
"
,
graphics
,
image
,
x
,
y
);
TRACE
(
"(%p, %p, %
.2f, %.2f
)
\n
"
,
graphics
,
image
,
x
,
y
);
if
(
!
graphics
||
!
image
)
if
(
!
graphics
||
!
image
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -1753,20 +1745,23 @@ GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x,
...
@@ -1753,20 +1745,23 @@ GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x,
GdipGetImageWidth
(
image
,
&
width
);
GdipGetImageWidth
(
image
,
&
width
);
GdipGetImageHeight
(
image
,
&
height
);
GdipGetImageHeight
(
image
,
&
height
);
srcw
=
width
*
(((
REAL
)
INCH_HIMETRIC
)
/
/* FIXME: we should use the graphics and image dpi, somehow */
((
REAL
)
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSX
)));
srch
=
height
*
(((
REAL
)
INCH_HIMETRIC
)
/
((
REAL
)
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSY
)));
if
(
image
->
type
!=
ImageTypeMetafile
){
points
[
0
].
X
=
points
[
2
].
X
=
x
;
y
+=
height
;
points
[
0
].
Y
=
points
[
1
].
Y
=
y
;
height
*=
-
1
;
points
[
1
].
X
=
x
+
width
;
}
points
[
2
].
Y
=
y
+
height
;
IPicture_Render
(
image
->
picture
,
graphics
->
hdc
,
x
,
y
,
width
,
height
,
return
GdipDrawImagePointsRect
(
graphics
,
image
,
points
,
3
,
0
,
0
,
width
,
height
,
0
,
0
,
srcw
,
srch
,
NULL
);
UnitPixel
,
NULL
,
NULL
,
NULL
);
}
return
Ok
;
GpStatus
WINGDIPAPI
GdipDrawImageI
(
GpGraphics
*
graphics
,
GpImage
*
image
,
INT
x
,
INT
y
)
{
TRACE
(
"(%p, %p, %d, %d)
\n
"
,
graphics
,
image
,
x
,
y
);
return
GdipDrawImage
(
graphics
,
image
,
(
REAL
)
x
,
(
REAL
)
y
);
}
}
GpStatus
WINGDIPAPI
GdipDrawImagePointRect
(
GpGraphics
*
graphics
,
GpImage
*
image
,
GpStatus
WINGDIPAPI
GdipDrawImagePointRect
(
GpGraphics
*
graphics
,
GpImage
*
image
,
...
...
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