Skip to content

Commit 8205d59

Browse files
committed
Add "typedef struct _D3DRECT" from wine. Small linux header fix
1 parent d9afc98 commit 8205d59

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/Common/PlatformLinux.inl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,5 +919,15 @@ typedef enum _D3DTEXTURETRANSFORMFLAGS {
919919
D3DTTFF_FORCE_DWORD = 0x7fffffff
920920
} D3DTEXTURETRANSFORMFLAGS;
921921

922+
#ifndef D3DRECT_DEFINED
923+
typedef struct _D3DRECT {
924+
LONG x1;
925+
LONG y1;
926+
LONG x2;
927+
LONG y2;
928+
} D3DRECT;
929+
#define D3DRECT_DEFINED
930+
#endif
931+
922932
inline BOOL SwitchToThread() { return (0 == pthread_yield()); }
923933

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "stdafx.h"
22
#include "FBasicVisual.h"
3-
#include "dxparticlecustom.h"
3+
#include "dxParticleCustom.h"
44

55
// generate constructor + destructor here

src/Layers/xrRender/light.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "StdAfx.h"
1+
#include "stdafx.h"
22
#include "light.h"
33

44
static const float SQRT2 = 1.4142135623730950488016887242097f;

src/Layers/xrRender/r__occlusion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "StdAfx.h"
2-
#include ".\r__occlusion.h"
1+
#include "stdafx.h"
2+
#include "./r__occlusion.h"
33

44
#include "QueryHelper.h"
55

0 commit comments

Comments
 (0)