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
5e8253aa
Commit
5e8253aa
authored
Feb 29, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Assign to structs instead of using memcpy.
parent
da0a48d2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
font.c
dlls/gdiplus/font.c
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+2
-2
graphicspath.c
dlls/gdiplus/graphicspath.c
+1
-1
image.c
dlls/gdiplus/image.c
+1
-1
matrix.c
dlls/gdiplus/matrix.c
+1
-1
pen.c
dlls/gdiplus/pen.c
+1
-1
No files found.
dlls/gdiplus/font.c
View file @
5e8253aa
...
...
@@ -95,7 +95,7 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
if
(
!
font
||
!
graphics
||
!
lfw
)
return
InvalidParameter
;
memcpy
(
lfw
,
&
font
->
lfw
,
sizeof
(
LOGFONTW
))
;
*
lfw
=
font
->
lfw
;
return
Ok
;
}
dlls/gdiplus/graphics.c
View file @
5e8253aa
...
...
@@ -1426,7 +1426,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
* width, angle). */
SelectObject
(
graphics
->
hdc
,
CreateFontIndirectW
(
&
font
->
lfw
));
GetTextMetricsW
(
graphics
->
hdc
,
&
textmet
);
memcpy
(
&
lfw
,
&
font
->
lfw
,
sizeof
(
LOGFONTW
))
;
lfw
=
font
->
lfw
;
lfw
.
lfHeight
=
roundr
(((
REAL
)
lfw
.
lfHeight
)
*
rel_height
);
lfw
.
lfWidth
=
roundr
(
textmet
.
tmAveCharWidth
*
rel_width
);
...
...
@@ -1811,7 +1811,7 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
if
(
!
graphics
||
!
matrix
)
return
InvalidParameter
;
memcpy
(
matrix
,
graphics
->
worldtrans
,
sizeof
(
GpMatrix
))
;
*
matrix
=
*
graphics
->
worldtrans
;
return
Ok
;
}
...
...
dlls/gdiplus/graphicspath.c
View file @
5e8253aa
...
...
@@ -281,7 +281,7 @@ GpStatus WINGDIPAPI GdipClonePath(GpPath* path, GpPath **clone)
*
clone
=
GdipAlloc
(
sizeof
(
GpPath
));
if
(
!*
clone
)
return
OutOfMemory
;
memcpy
(
*
clone
,
path
,
sizeof
(
GpPath
))
;
**
clone
=
*
path
;
(
*
clone
)
->
pathdata
.
Points
=
GdipAlloc
(
path
->
datalen
*
sizeof
(
PointF
));
(
*
clone
)
->
pathdata
.
Types
=
GdipAlloc
(
path
->
datalen
);
...
...
dlls/gdiplus/image.c
View file @
5e8253aa
...
...
@@ -441,7 +441,7 @@ GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
if
(
!
image
||
!
srcRect
||
!
srcUnit
)
return
InvalidParameter
;
if
(
image
->
type
==
ImageTypeMetafile
){
memcpy
(
srcRect
,
&
((
GpMetafile
*
)
image
)
->
bounds
,
sizeof
(
GpRectF
))
;
*
srcRect
=
((
GpMetafile
*
)
image
)
->
bounds
;
*
srcUnit
=
((
GpMetafile
*
)
image
)
->
unit
;
}
else
if
(
image
->
type
==
ImageTypeBitmap
){
...
...
dlls/gdiplus/matrix.c
View file @
5e8253aa
...
...
@@ -97,7 +97,7 @@ GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
*
clone
=
GdipAlloc
(
sizeof
(
GpMatrix
));
if
(
!*
clone
)
return
OutOfMemory
;
memcpy
(
*
clone
,
matrix
,
sizeof
(
GpMatrix
))
;
**
clone
=
*
matrix
;
return
Ok
;
}
...
...
dlls/gdiplus/pen.c
View file @
5e8253aa
...
...
@@ -75,7 +75,7 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
*
clonepen
=
GdipAlloc
(
sizeof
(
GpPen
));
if
(
!*
clonepen
)
return
OutOfMemory
;
memcpy
(
*
clonepen
,
pen
,
sizeof
(
GpPen
))
;
**
clonepen
=
*
pen
;
GdipCloneCustomLineCap
(
pen
->
customstart
,
&
(
*
clonepen
)
->
customstart
);
GdipCloneCustomLineCap
(
pen
->
customend
,
&
(
*
clonepen
)
->
customend
);
...
...
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