mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 781731 - Set Azure shadow canvas size match thebes in order to match performance. r=Bas
This commit is contained in:
parent
d744f8915d
commit
78e21582fd
@ -287,7 +287,8 @@ public:
|
|||||||
|
|
||||||
mTempRect = mgfx::Rect(0, 0, ctx->mWidth, ctx->mHeight);
|
mTempRect = mgfx::Rect(0, 0, ctx->mWidth, ctx->mHeight);
|
||||||
|
|
||||||
Float blurRadius = mSigma * 3;
|
static const gfxFloat GAUSSIAN_SCALE_FACTOR = (3 * sqrt(2 * M_PI) / 4) * 1.5;
|
||||||
|
int32_t blurRadius = (int32_t) floor(mSigma * GAUSSIAN_SCALE_FACTOR + 0.5);
|
||||||
|
|
||||||
// We need to enlarge and possibly offset our temporary surface
|
// We need to enlarge and possibly offset our temporary surface
|
||||||
// so that things outside of the canvas may cast shadows.
|
// so that things outside of the canvas may cast shadows.
|
||||||
|
Loading…
Reference in New Issue
Block a user