diff options
Diffstat (limited to 'src/d3d9/d3d9_util.h')
-rw-r--r-- | src/d3d9/d3d9_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/d3d9/d3d9_util.h b/src/d3d9/d3d9_util.h index 89147dac..ecd21a3f 100644 --- a/src/d3d9/d3d9_util.h +++ b/src/d3d9/d3d9_util.h @@ -297,3 +297,13 @@ inline bool operator == (const POINT& a, const POINT& b) { inline bool operator != (const POINT& a, const POINT& b) { return !(a == b); } + +inline bool operator == (const D3DDISPLAYMODEEX& a, const D3DDISPLAYMODEEX& b) { + return a.Size == b.Size && + a.Width == b.Width && + a.Height == b.Height && + a.RefreshRate == b.RefreshRate && + a.Format == b.Format && + a.ScanLineOrdering == b.ScanLineOrdering; +} + |