Skip to content

Commit

Permalink
Add "typedef struct _D3DRECT" from wine. Small linux header fix
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed Sep 29, 2018
1 parent d9afc98 commit 8205d59
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions src/Common/PlatformLinux.inl
Original file line number Diff line number Diff line change
Expand Up @@ -919,5 +919,15 @@ typedef enum _D3DTEXTURETRANSFORMFLAGS {
D3DTTFF_FORCE_DWORD = 0x7fffffff
} D3DTEXTURETRANSFORMFLAGS;

#ifndef D3DRECT_DEFINED
typedef struct _D3DRECT {
LONG x1;
LONG y1;
LONG x2;
LONG y2;
} D3DRECT;
#define D3DRECT_DEFINED
#endif

inline BOOL SwitchToThread() { return (0 == pthread_yield()); }

2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxParticleCustom.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "stdafx.h"
#include "FBasicVisual.h"
#include "dxparticlecustom.h"
#include "dxParticleCustom.h"

// generate constructor + destructor here
2 changes: 1 addition & 1 deletion src/Layers/xrRender/light.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "StdAfx.h"
#include "stdafx.h"
#include "light.h"

static const float SQRT2 = 1.4142135623730950488016887242097f;
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/r__occlusion.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "StdAfx.h"
#include ".\r__occlusion.h"
#include "stdafx.h"
#include "./r__occlusion.h"

#include "QueryHelper.h"

Expand Down

0 comments on commit 8205d59

Please sign in to comment.