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
207bdd01
Commit
207bdd01
authored
Jul 20, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Use nameless unions/structs.
parent
03c1930b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
dc.c
dlls/gdi32/tests/dc.c
+3
-6
No files found.
dlls/gdi32/tests/dc.c
View file @
207bdd01
...
...
@@ -19,9 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include <assert.h>
#include <stdio.h>
...
...
@@ -616,7 +613,7 @@ static void test_CreateCompatibleDC(void)
dm
.
dmSize
=
sizeof
(
dm
);
bRet
=
EnumDisplaySettingsA
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
dm
);
ok
(
bRet
,
"EnumDisplaySettingsEx failed
\n
"
);
dm
.
u1
.
s1
.
dmScale
=
200
;
dm
.
dmScale
=
200
;
dm
.
dmFields
|=
DM_SCALE
;
hdc
=
CreateDCA
(
"DISPLAY"
,
NULL
,
NULL
,
&
dm
);
...
...
@@ -1353,7 +1350,7 @@ static HDC create_printer_dc(int scale, BOOL reset)
dbuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
!
pGetPrinterDriverA
(
hprn
,
NULL
,
3
,
(
LPBYTE
)
dbuf
,
len
,
&
len
))
goto
done
;
pbuf
->
pDevMode
->
u1
.
s1
.
dmScale
=
scale
;
pbuf
->
pDevMode
->
dmScale
=
scale
;
pbuf
->
pDevMode
->
dmFields
|=
DM_SCALE
;
hdc
=
CreateDCA
(
dbuf
->
pDriverPath
,
pbuf
->
pPrinterName
,
pbuf
->
pPortName
,
pbuf
->
pDevMode
);
...
...
@@ -1600,7 +1597,7 @@ static void test_clip_box(void)
EnumDisplaySettingsA
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
scale_mode
);
scale_mode
.
dmFields
|=
DM_SCALE
;
scale_mode
.
u1
.
s1
.
dmScale
=
200
;
scale_mode
.
dmScale
=
200
;
SetRect
(
&
screen_rect
,
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
GetSystemMetrics
(
SM_XVIRTUALSCREEN
)
+
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
...
...
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