mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Issue #1925 - Convert NS_HALF_TO_FULL_CORNER to a constexpr function.
This commit is contained in:
parent
f507d2cdbc
commit
31badb0f2e
3 changed files with 8 additions and 4 deletions
|
|
@ -464,6 +464,11 @@ constexpr bool HalfCornerIsX(HalfCorner aHalfCorner)
|
|||
return !(aHalfCorner % 2);
|
||||
}
|
||||
|
||||
constexpr Corner HalfToFullCorner(HalfCorner aHalfCorner)
|
||||
{
|
||||
return Corner(aHalfCorner / 2);
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif /* MOZILLA_GFX_TYPES_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue