diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 03:20:53 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 03:20:53 +0300 |
commit | 86e6b0a385e3d458550f18b74a1ef9bbd85549f6 (patch) | |
tree | cd5ad3f675941663dd4a3b89c292c853dac19eb5 | |
parent | fe84e92a2e304f64eb2cd26a968320c54bc30c46 (diff) | |
download | metacity-86e6b0a385e3d458550f18b74a1ef9bbd85549f6.tar.gz |
libmetacity: pass scale to clip_to_rounded_corners
-rw-r--r-- | libmetacity/meta-theme-metacity.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libmetacity/meta-theme-metacity.c b/libmetacity/meta-theme-metacity.c index b3cc17a5..89a57a20 100644 --- a/libmetacity/meta-theme-metacity.c +++ b/libmetacity/meta-theme-metacity.c @@ -5185,13 +5185,13 @@ meta_theme_metacity_calc_geometry (MetaThemeImpl *impl, static void clip_to_rounded_corners (cairo_t *cr, GdkRectangle rect, - const MetaFrameGeometry *fgeom) + const MetaFrameGeometry *fgeom, + gint scale) { gint x; gint y; gint width; gint height; - int scale; gint radius; x = rect.x; @@ -5201,8 +5201,6 @@ clip_to_rounded_corners (cairo_t *cr, cairo_new_path (cr); - scale = get_window_scaling_factor (); - if (fgeom->top_left_corner_rounded_radius != 0) { radius = fgeom->top_left_corner_rounded_radius / scale; @@ -5358,7 +5356,7 @@ meta_theme_metacity_draw_frame (MetaThemeImpl *impl, draw_info.height = fgeom->height; cairo_save (cr); - clip_to_rounded_corners (cr, visible_rect, fgeom); + clip_to_rounded_corners (cr, visible_rect, fgeom, scale); context = meta_style_info_get_style (style_info, META_STYLE_ELEMENT_WINDOW); |