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
313e4d0e
Commit
313e4d0e
authored
Jul 13, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use nameless unions/structs.
parent
36bb34fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
image.c
dlls/gdiplus/image.c
+0
-2
metafile.c
dlls/gdiplus/metafile.c
+6
-8
No files found.
dlls/gdiplus/image.c
View file @
313e4d0e
...
...
@@ -20,8 +20,6 @@
#include <stdarg.h>
#include <assert.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
...
...
dlls/gdiplus/metafile.c
View file @
313e4d0e
...
...
@@ -20,8 +20,6 @@
#include <math.h>
#include <assert.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
...
...
@@ -1702,7 +1700,7 @@ GpStatus METAFILE_GraphicsDeleted(GpMetafile* metafile)
BYTE
*
buffer
;
UINT
buffer_size
;
gdi_bounds_rc
=
header
.
u
.
EmfHeader
.
rclBounds
;
gdi_bounds_rc
=
header
.
EmfHeader
.
rclBounds
;
if
(
gdi_bounds_rc
.
right
>
gdi_bounds_rc
.
left
&&
gdi_bounds_rc
.
bottom
>
gdi_bounds_rc
.
top
)
{
...
...
@@ -4156,7 +4154,7 @@ GpStatus WINGDIPAPI GdipGetMetafileHeaderFromEmf(HENHMETAFILE hemf,
header
->
Y
=
gdip_round
((
REAL
)
emfheader
.
rclFrame
.
top
/
2540
.
0
*
header
->
DpiY
);
header
->
Width
=
gdip_round
((
REAL
)(
emfheader
.
rclFrame
.
right
-
emfheader
.
rclFrame
.
left
)
/
2540
.
0
*
header
->
DpiX
);
header
->
Height
=
gdip_round
((
REAL
)(
emfheader
.
rclFrame
.
bottom
-
emfheader
.
rclFrame
.
top
)
/
2540
.
0
*
header
->
DpiY
);
header
->
u
.
EmfHeader
=
emfheader
;
header
->
EmfHeader
=
emfheader
;
if
(
metafile_type
==
MetafileTypeEmfPlusDual
||
metafile_type
==
MetafileTypeEmfPlusOnly
)
{
...
...
@@ -4259,11 +4257,11 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hemf, BOOL delete,
(
*
metafile
)
->
image
.
frame_count
=
1
;
(
*
metafile
)
->
image
.
xres
=
header
.
DpiX
;
(
*
metafile
)
->
image
.
yres
=
header
.
DpiY
;
(
*
metafile
)
->
bounds
.
X
=
(
REAL
)
header
.
u
.
EmfHeader
.
rclFrame
.
left
/
2540
.
0
*
header
.
DpiX
;
(
*
metafile
)
->
bounds
.
Y
=
(
REAL
)
header
.
u
.
EmfHeader
.
rclFrame
.
top
/
2540
.
0
*
header
.
DpiY
;
(
*
metafile
)
->
bounds
.
Width
=
(
REAL
)(
header
.
u
.
EmfHeader
.
rclFrame
.
right
-
header
.
u
.
EmfHeader
.
rclFrame
.
left
)
(
*
metafile
)
->
bounds
.
X
=
(
REAL
)
header
.
EmfHeader
.
rclFrame
.
left
/
2540
.
0
*
header
.
DpiX
;
(
*
metafile
)
->
bounds
.
Y
=
(
REAL
)
header
.
EmfHeader
.
rclFrame
.
top
/
2540
.
0
*
header
.
DpiY
;
(
*
metafile
)
->
bounds
.
Width
=
(
REAL
)(
header
.
EmfHeader
.
rclFrame
.
right
-
header
.
EmfHeader
.
rclFrame
.
left
)
/
2540
.
0
*
header
.
DpiX
;
(
*
metafile
)
->
bounds
.
Height
=
(
REAL
)(
header
.
u
.
EmfHeader
.
rclFrame
.
bottom
-
header
.
u
.
EmfHeader
.
rclFrame
.
top
)
(
*
metafile
)
->
bounds
.
Height
=
(
REAL
)(
header
.
EmfHeader
.
rclFrame
.
bottom
-
header
.
EmfHeader
.
rclFrame
.
top
)
/
2540
.
0
*
header
.
DpiY
;
(
*
metafile
)
->
unit
=
UnitPixel
;
(
*
metafile
)
->
metafile_type
=
header
.
Type
;
...
...
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