diff options
author | Joshua Ashton <joshua@froggi.es> | 2024-01-19 19:27:38 +0300 |
---|---|---|
committer | Joshua Ashton <joshua@froggi.es> | 2024-01-19 19:28:22 +0300 |
commit | 0cd4165658537405d84a43f3ab6180b770f30fe1 (patch) | |
tree | ee9701fd8617f4df5682443d2b3cffc0a5c8a825 | |
parent | 4b8e8bed6e7007144f803ec64485168c82273c6f (diff) |
[d3d9] Add D3DDISPLAYMODEEX operator
-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; +} + |