[metacity] libmetacity: pass scale to clip_to_rounded_corners
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: pass scale to clip_to_rounded_corners
- Date: Fri, 3 Jun 2016 00:59:01 +0000 (UTC)
commit 86e6b0a385e3d458550f18b74a1ef9bbd85549f6
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Jun 3 03:20:53 2016 +0300
libmetacity: pass scale to clip_to_rounded_corners
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 b3cc17a..89a57a2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]