Commit 6dfcb296 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

include: Pack structures to 4-bytes alignment on x86 in D3D headers.

parent 144056bc
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
#ifndef __WINE_D3D8CAPS_H #ifndef __WINE_D3D8CAPS_H
#define __WINE_D3D8CAPS_H #define __WINE_D3D8CAPS_H
#ifdef __i386__
#include <pshpack4.h>
#endif
/* /*
* Definitions * Definitions
*/ */
...@@ -283,4 +287,8 @@ typedef struct _D3DCAPS8 { ...@@ -283,4 +287,8 @@ typedef struct _D3DCAPS8 {
float MaxPixelShaderValue; float MaxPixelShaderValue;
} D3DCAPS8; } D3DCAPS8;
#ifdef __i386__
#include <poppack.h>
#endif
#endif /* __WINE_D3D8CAPS_H */ #endif /* __WINE_D3D8CAPS_H */
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
#ifndef __WINE_D3D8TYPES_H #ifndef __WINE_D3D8TYPES_H
#define __WINE_D3D8TYPES_H #define __WINE_D3D8TYPES_H
#ifdef __i386__
#include <pshpack4.h>
#endif
/***************************************************************************** /*****************************************************************************
* Direct 3D v8 #defines * Direct 3D v8 #defines
...@@ -1210,4 +1213,8 @@ typedef struct _D3DVOLUME_DESC { ...@@ -1210,4 +1213,8 @@ typedef struct _D3DVOLUME_DESC {
UINT Depth; UINT Depth;
} D3DVOLUME_DESC; } D3DVOLUME_DESC;
#ifdef __i386__
#include <poppack.h>
#endif
#endif /* __WINE_D3D8TYPES_H */ #endif /* __WINE_D3D8TYPES_H */
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
#include <ddraw.h> #include <ddraw.h>
#ifdef __i386__
#include <pshpack4.h>
#endif
typedef struct _D3DTRANSFORMCAPS { typedef struct _D3DTRANSFORMCAPS {
DWORD dwSize; DWORD dwSize;
DWORD dwCaps; DWORD dwCaps;
...@@ -428,6 +432,8 @@ typedef struct _D3DDEVINFO_TEXTURING { ...@@ -428,6 +432,8 @@ typedef struct _D3DDEVINFO_TEXTURING {
DWORD dwNumGetDCs; DWORD dwNumGetDCs;
} D3DDEVINFO_TEXTURING, *LPD3DDEVINFO_TEXTURING; } D3DDEVINFO_TEXTURING, *LPD3DDEVINFO_TEXTURING;
#ifdef __i386__
#include <poppack.h>
#endif
#endif #endif
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
#include <float.h> #include <float.h>
#include <ddraw.h> #include <ddraw.h>
#ifdef __i386__
#include <pshpack4.h>
#endif
#define D3DVALP(val, prec) ((float)(val)) #define D3DVALP(val, prec) ((float)(val))
#define D3DVAL(val) ((float)(val)) #define D3DVAL(val) ((float)(val))
#define D3DDivide(a, b) (float)((double) (a) / (double) (b)) #define D3DDivide(a, b) (float)((double) (a) / (double) (b))
...@@ -1356,4 +1360,8 @@ typedef enum _D3DTEXTURETRANSFORMFLAGS { ...@@ -1356,4 +1360,8 @@ typedef enum _D3DTEXTURETRANSFORMFLAGS {
#define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16)) #define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16))
#define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16)) #define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))
#ifdef __i386__
#include <poppack.h>
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment