diff options
Diffstat (limited to 'core/fxge/cfx_renderdevice.cpp')
-rw-r--r-- | core/fxge/cfx_renderdevice.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/fxge/cfx_renderdevice.cpp b/core/fxge/cfx_renderdevice.cpp index 310a16512c..cb0e600916 100644 --- a/core/fxge/cfx_renderdevice.cpp +++ b/core/fxge/cfx_renderdevice.cpp @@ -471,6 +471,13 @@ bool CFX_RenderDevice::SetClip_PathStroke( return true; } +bool CFX_RenderDevice::SetClip_Rect(const CFX_RectF& rtClip) { + return SetClip_Rect(FX_RECT(static_cast<int32_t>(floor(rtClip.left)), + static_cast<int32_t>(floor(rtClip.top)), + static_cast<int32_t>(ceil(rtClip.right())), + static_cast<int32_t>(ceil(rtClip.bottom())))); +} + bool CFX_RenderDevice::SetClip_Rect(const FX_RECT& rect) { CFX_PathData path; path.AppendRect(rect.left, rect.bottom, rect.right, rect.top); |