| Index: core/src/fxge/ge/fx_ge_device.cpp
|
| diff --git a/core/src/fxge/ge/fx_ge_device.cpp b/core/src/fxge/ge/fx_ge_device.cpp
|
| index 268001b2859cd90032252987801c362d2c1d997a..c4f773595782bb3538761f017985f69ca8a2d022 100644
|
| --- a/core/src/fxge/ge/fx_ge_device.cpp
|
| +++ b/core/src/fxge/ge/fx_ge_device.cpp
|
| @@ -91,13 +91,12 @@ FX_BOOL CFX_RenderDevice::SetClip_PathStroke(
|
| UpdateClipBox();
|
| return TRUE;
|
| }
|
| -FX_BOOL CFX_RenderDevice::SetClip_Rect(const FX_RECT* pRect) {
|
| +FX_BOOL CFX_RenderDevice::SetClip_Rect(const FX_RECT& rect) {
|
| CFX_PathData path;
|
| - path.AppendRect((FX_FLOAT)(pRect->left), (FX_FLOAT)(pRect->bottom),
|
| - (FX_FLOAT)(pRect->right), (FX_FLOAT)(pRect->top));
|
| - if (!SetClip_PathFill(&path, NULL, FXFILL_WINDING)) {
|
| + path.AppendRect(rect.left, rect.bottom, rect.right, rect.top);
|
| + if (!SetClip_PathFill(&path, nullptr, FXFILL_WINDING))
|
| return FALSE;
|
| - }
|
| +
|
| UpdateClipBox();
|
| return TRUE;
|
| }
|
|
|