Skip to content

Commit

Permalink
Adding comments and minor changes for PR 55.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEHenderson committed Sep 11, 2024
1 parent 794bf4a commit a99f246
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 33 deletions.
56 changes: 30 additions & 26 deletions src/d3d9/d3d9_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,37 +209,36 @@ namespace dxvk {
bool IsDepthFormat(D3D9Format Format);

inline bool operator == (const D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
return a.X == b.X &&
a.Y == b.Y &&
a.Width == b.Width &&
a.Height == b.Height &&
a.MinZ == b.MinZ &&
a.MaxZ == b.MaxZ;
}

inline bool operator != (const D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
return !(a == b);
}
return a.X == b.X &&
a.Y == b.Y &&
a.Width == b.Width &&
a.Height == b.Height &&
a.MinZ == b.MinZ &&
a.MaxZ == b.MaxZ;
}

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 D3DVIEWPORT9& a, const D3DVIEWPORT9& b) {
return !(a == b);
}

inline bool operator != (const RECT& a, const RECT& 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 POINT& a, const POINT& b) {
return a.x == b.x && a.y == b.y;
}
inline bool operator != (const RECT& a, const RECT& b) {
return !(a == b);
}

inline bool operator != (const POINT& a, const POINT& b) {
return !(a == b);
}
inline bool operator == (const POINT& a, const POINT& b) {
return a.x == b.x && a.y == b.y;
}

inline bool operator != (const POINT& a, const POINT& b) {
return !(a == b);
}

inline bool IsPoolManaged(D3DPOOL Pool) {
return Pool == D3DPOOL_MANAGED || Pool == D3DPOOL_MANAGED_EX;
Expand Down Expand Up @@ -301,6 +300,10 @@ inline bool operator != (const POINT& a, const POINT& b) {
}

}

// NV-DXVK start: Adding a function from dxvk main without including its dependency (the dependency currently causes build failures)
// function comes from: https://github.com/doitsujin/dxvk/commit/0cd4165658537405d84a43f3ab6180b770f30fe1
// not included dependency: https://github.com/doitsujin/dxvk/commit/4b8e8bed6e7007144f803ec64485168c82273c6f
inline bool operator == (const D3DDISPLAYMODEEX& a, const D3DDISPLAYMODEEX& b) {
return a.Size == b.Size &&
a.Width == b.Width &&
Expand All @@ -309,3 +312,4 @@ inline bool operator == (const D3DDISPLAYMODEEX& a, const D3DDISPLAYMODEEX& b) {
a.Format == b.Format &&
a.ScanLineOrdering == b.ScanLineOrdering;
}
// NV-DXVK end
14 changes: 7 additions & 7 deletions src/dxvk/imgui/dxvk_imgui_about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ namespace dxvk {

ImGuiAbout::Credits::Credits()
: m_sections({
{ "Github Contributors",
{ "Alexander 'xoxor4d' Engel",
{ "Github Contributors", // Sorted alphabetically by last name
{ "Alexis 'Sortifal' Bruneteau",
"Ethan 'Xenthio' Cardwell",
"Alexander 'xoxor4d' Engel",
"James Horsley 'mmdanggg2'",
"Leonardo Leotte",
"Nico Rodrigues-McKenna",
"James 'jdswebb' Webb",
"James Horsley 'mmdanggg2'",
"Friedrich 'pixelcluster' Vock",
"Dayton 'watbulb'",
"Ethan 'Xenthio' Cardwell",
"James 'jdswebb' Webb",
"David 'King David' Wiltos",
"Alexis 'Sortifal' Bruneteau",
"Dayton 'watbulb'",
}},
{ "Engineering",
{ "Riley Alston",
Expand Down

0 comments on commit a99f246

Please sign in to comment.