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
7ded3d83
Commit
7ded3d83
authored
Dec 18, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add some traces for the values of point arguments.
parent
d46eda2b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
brush.c
dlls/gdiplus/brush.c
+3
-3
gdiplus.c
dlls/gdiplus/gdiplus.c
+6
-0
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+2
-0
graphics.c
dlls/gdiplus/graphics.c
+3
-0
No files found.
dlls/gdiplus/brush.c
View file @
7ded3d83
...
...
@@ -311,8 +311,8 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
{
COLORREF
col
=
ARGB2COLORREF
(
startcolor
);
TRACE
(
"(%
p, %p, %x, %x, %d, %p)
\n
"
,
startpoint
,
endpoint
,
startcolor
,
endcolor
,
wrap
,
line
);
TRACE
(
"(%
s, %s, %x, %x, %d, %p)
\n
"
,
debugstr_pointf
(
startpoint
)
,
debugstr_pointf
(
endpoint
),
startcolor
,
endcolor
,
wrap
,
line
);
if
(
!
line
||
!
startpoint
||
!
endpoint
||
wrap
==
WrapModeClamp
)
return
InvalidParameter
;
...
...
@@ -1448,7 +1448,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
GpStatus
WINGDIPAPI
GdipSetPathGradientCenterPoint
(
GpPathGradient
*
grad
,
GpPointF
*
point
)
{
TRACE
(
"(%p, %
p)
\n
"
,
grad
,
point
);
TRACE
(
"(%p, %
s)
\n
"
,
grad
,
debugstr_pointf
(
point
)
);
if
(
!
grad
||
!
point
)
return
InvalidParameter
;
...
...
dlls/gdiplus/gdiplus.c
View file @
7ded3d83
...
...
@@ -444,3 +444,9 @@ const char *debugstr_rectf(CONST RectF* rc)
if
(
!
rc
)
return
"(null)"
;
return
wine_dbg_sprintf
(
"(%0.2f,%0.2f,%0.2f,%0.2f)"
,
rc
->
X
,
rc
->
Y
,
rc
->
Width
,
rc
->
Height
);
}
const
char
*
debugstr_pointf
(
CONST
PointF
*
pt
)
{
if
(
!
pt
)
return
"(null)"
;
return
wine_dbg_sprintf
(
"(%0.2f,%0.2f)"
,
pt
->
X
,
pt
->
Y
);
}
dlls/gdiplus/gdiplus_private.h
View file @
7ded3d83
...
...
@@ -80,6 +80,8 @@ static inline REAL deg2rad(REAL degrees)
extern
const
char
*
debugstr_rectf
(
CONST
RectF
*
rc
);
extern
const
char
*
debugstr_pointf
(
CONST
PointF
*
pt
);
extern
void
convert_32bppARGB_to_32bppPARGB
(
UINT
width
,
UINT
height
,
BYTE
*
dst_bits
,
INT
dst_stride
,
const
BYTE
*
src_bits
,
INT
src_stride
);
...
...
dlls/gdiplus/graphics.c
View file @
7ded3d83
...
...
@@ -1876,6 +1876,9 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
if
(
!
graphics
||
!
image
||
!
points
||
count
!=
3
)
return
InvalidParameter
;
TRACE
(
"%s %s %s
\n
"
,
debugstr_pointf
(
&
points
[
0
]),
debugstr_pointf
(
&
points
[
1
]),
debugstr_pointf
(
&
points
[
2
]));
memcpy
(
ptf
,
points
,
3
*
sizeof
(
GpPointF
));
transform_and_round_points
(
graphics
,
pti
,
ptf
,
3
);
...
...
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