cssshadowvalue: Fix copy/paste issue

http://www.viva64.com/en/b/0383/
This commit is contained in:
Benjamin Otte 2016-03-20 05:26:10 +01:00
parent 3308122c32
commit 58b7512b53

View File

@ -682,7 +682,7 @@ draw_shadow_corner (const GtkCssValue *shadow,
x2 = ceil (box->box.x + box->corner[corner].horizontal + clip_radius); x2 = ceil (box->box.x + box->corner[corner].horizontal + clip_radius);
x = x1; x = x1;
sx = 1; sx = 1;
max_other = MAX(box->corner[GTK_CSS_TOP_RIGHT].horizontal, box->corner[GTK_CSS_TOP_RIGHT].horizontal); max_other = MAX(box->corner[GTK_CSS_TOP_RIGHT].horizontal, box->corner[GTK_CSS_BOTTOM_RIGHT].horizontal);
x3 = floor (box->box.x + box->box.width - max_other - clip_radius); x3 = floor (box->box.x + box->box.width - max_other - clip_radius);
if (x2 > x3) if (x2 > x3)
overlapped = TRUE; overlapped = TRUE;
@ -693,7 +693,7 @@ draw_shadow_corner (const GtkCssValue *shadow,
x2 = ceil (box->box.x + box->box.width + clip_radius); x2 = ceil (box->box.x + box->box.width + clip_radius);
x = x2; x = x2;
sx = -1; sx = -1;
max_other = MAX(box->corner[GTK_CSS_TOP_LEFT].horizontal, box->corner[GTK_CSS_TOP_LEFT].horizontal); max_other = MAX(box->corner[GTK_CSS_TOP_LEFT].horizontal, box->corner[GTK_CSS_BOTTOM_LEFT].horizontal);
x3 = ceil (box->box.x + max_other + clip_radius); x3 = ceil (box->box.x + max_other + clip_radius);
if (x3 > x1) if (x3 > x1)
overlapped = TRUE; overlapped = TRUE;