mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
gdi32/tests: Use nameless unions/structs.
This commit is contained in:
parent
03c1930b74
commit
207bdd01ca
|
@ -19,9 +19,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NONAMELESSSTRUCT
|
|
||||||
#define NONAMELESSUNION
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -616,7 +613,7 @@ static void test_CreateCompatibleDC(void)
|
||||||
dm.dmSize = sizeof(dm);
|
dm.dmSize = sizeof(dm);
|
||||||
bRet = EnumDisplaySettingsA(NULL, ENUM_CURRENT_SETTINGS, &dm);
|
bRet = EnumDisplaySettingsA(NULL, ENUM_CURRENT_SETTINGS, &dm);
|
||||||
ok(bRet, "EnumDisplaySettingsEx failed\n");
|
ok(bRet, "EnumDisplaySettingsEx failed\n");
|
||||||
dm.u1.s1.dmScale = 200;
|
dm.dmScale = 200;
|
||||||
dm.dmFields |= DM_SCALE;
|
dm.dmFields |= DM_SCALE;
|
||||||
hdc = CreateDCA( "DISPLAY", NULL, NULL, &dm );
|
hdc = CreateDCA( "DISPLAY", NULL, NULL, &dm );
|
||||||
|
|
||||||
|
@ -1353,7 +1350,7 @@ static HDC create_printer_dc(int scale, BOOL reset)
|
||||||
dbuf = HeapAlloc( GetProcessHeap(), 0, len );
|
dbuf = HeapAlloc( GetProcessHeap(), 0, len );
|
||||||
if (!pGetPrinterDriverA( hprn, NULL, 3, (LPBYTE)dbuf, len, &len )) goto done;
|
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;
|
pbuf->pDevMode->dmFields |= DM_SCALE;
|
||||||
|
|
||||||
hdc = CreateDCA( dbuf->pDriverPath, pbuf->pPrinterName, pbuf->pPortName, pbuf->pDevMode );
|
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);
|
EnumDisplaySettingsA(NULL, ENUM_CURRENT_SETTINGS, &scale_mode);
|
||||||
scale_mode.dmFields |= DM_SCALE;
|
scale_mode.dmFields |= DM_SCALE;
|
||||||
scale_mode.u1.s1.dmScale = 200;
|
scale_mode.dmScale = 200;
|
||||||
|
|
||||||
SetRect(&screen_rect, GetSystemMetrics(SM_XVIRTUALSCREEN), GetSystemMetrics(SM_YVIRTUALSCREEN),
|
SetRect(&screen_rect, GetSystemMetrics(SM_XVIRTUALSCREEN), GetSystemMetrics(SM_YVIRTUALSCREEN),
|
||||||
GetSystemMetrics(SM_XVIRTUALSCREEN) + GetSystemMetrics(SM_CXVIRTUALSCREEN),
|
GetSystemMetrics(SM_XVIRTUALSCREEN) + GetSystemMetrics(SM_CXVIRTUALSCREEN),
|
||||||
|
|
Loading…
Reference in a new issue