diff options
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r-- | win32/PlatWin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h index 86022a0cd..6c51ec8ad 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -24,6 +24,10 @@ constexpr RECT RectFromPRectangle(PRectangle prc) noexcept { return rc; } +constexpr PRectangle PRectangleFromRECT(RECT rc) noexcept { + return PRectangle::FromInts(rc.left, rc.top, rc.right, rc.bottom); +} + constexpr POINT POINTFromPoint(Point pt) noexcept { return POINT{ static_cast<LONG>(pt.x), static_cast<LONG>(pt.y) }; } |