mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Patch from Ken Harris to provide a more lenient threshold for drawing
2005-07-14 Elijah Newren <newren@gmail.com> Patch from Ken Harris to provide a more lenient threshold for drawing rounded corners. Fixes #122065. * src/theme.c (meta_frame_layout_calc_geometry): use height + width > 5 instead of height > 3 && width > 3 as criterion
This commit is contained in:
parent
020736a42f
commit
6c023bfef7
@ -1,3 +1,11 @@
|
||||
2005-07-14 Elijah Newren <newren@gmail.com>
|
||||
|
||||
Patch from Ken Harris to provide a more lenient threshold for
|
||||
drawing rounded corners. Fixes #122065.
|
||||
|
||||
* src/theme.c (meta_frame_layout_calc_geometry): use height +
|
||||
width > 5 instead of height > 3 && width > 3 as criterion
|
||||
|
||||
2005-07-13 Elijah Newren <newren@gmail.com>
|
||||
|
||||
Fix a slight bug (causing possible miscoloring of parts of the
|
||||
|
16
src/theme.c
16
src/theme.c
@ -743,29 +743,23 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout,
|
||||
if (flags & META_FRAME_SHADED)
|
||||
min_size_for_rounding = 0;
|
||||
else
|
||||
min_size_for_rounding = 3;
|
||||
min_size_for_rounding = 5;
|
||||
|
||||
fgeom->top_left_corner_rounded = FALSE;
|
||||
fgeom->top_right_corner_rounded = FALSE;
|
||||
fgeom->bottom_left_corner_rounded = FALSE;
|
||||
fgeom->bottom_right_corner_rounded = FALSE;
|
||||
|
||||
if (fgeom->top_height >= min_size_for_rounding)
|
||||
{
|
||||
if (fgeom->left_width >= min_size_for_rounding)
|
||||
if (fgeom->top_height + fgeom->left_width >= min_size_for_rounding)
|
||||
fgeom->top_left_corner_rounded = layout->top_left_corner_rounded;
|
||||
if (fgeom->right_width >= min_size_for_rounding)
|
||||
if (fgeom->top_height + fgeom->right_width >= min_size_for_rounding)
|
||||
fgeom->top_right_corner_rounded = layout->top_right_corner_rounded;
|
||||
}
|
||||
|
||||
if (fgeom->bottom_height >= min_size_for_rounding)
|
||||
{
|
||||
if (fgeom->left_width >= min_size_for_rounding)
|
||||
if (fgeom->bottom_height + fgeom->left_width >= min_size_for_rounding)
|
||||
fgeom->bottom_left_corner_rounded = layout->bottom_left_corner_rounded;
|
||||
if (fgeom->right_width >= min_size_for_rounding)
|
||||
if (fgeom->bottom_height + fgeom->right_width >= min_size_for_rounding)
|
||||
fgeom->bottom_right_corner_rounded = layout->bottom_right_corner_rounded;
|
||||
}
|
||||
}
|
||||
|
||||
MetaGradientSpec*
|
||||
meta_gradient_spec_new (MetaGradientType type)
|
||||
|
Loading…
Reference in New Issue
Block a user