1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d9] Add operator overloads for RECT

This commit is contained in:
Joshua Ashton 2019-12-18 22:46:04 +00:00
parent 777cd4cd64
commit 7b0723520a

View File

@ -204,6 +204,17 @@ namespace dxvk {
return !(a == b); return !(a == b);
} }
inline bool operator == (const RECT& a, const RECT& b) {
return a.left == b.left &&
a.right == b.right &&
a.top == b.top &&
a.bottom == b.bottom;
}
inline bool operator != (const RECT& a, const RECT& b) {
return !(a == b);
}
inline bool IsPoolManaged(D3DPOOL Pool) { inline bool IsPoolManaged(D3DPOOL Pool) {
return Pool == D3DPOOL_MANAGED || Pool == D3DPOOL_MANAGED_EX; return Pool == D3DPOOL_MANAGED || Pool == D3DPOOL_MANAGED_EX;
} }