From 82778f72a443128ebe7dc3d3b8251972c731c4a7 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 16 Mar 2020 19:47:30 -0300 Subject: [PATCH] window-actor: Shuffle some lines around Move the CoglColor assignment right above the cogl_framebuffer_clear() call, and let these wonderful partners together to delight us with an easier to read code. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1129 --- src/compositor/meta-window-actor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 32b85ed1f..fe6ea870a 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -1290,11 +1290,11 @@ meta_window_actor_blit_to_framebuffer (MetaScreenCastWindow *screen_cast_window, width = ceilf (width * resource_scale); height = ceilf (height * resource_scale); - cogl_color_init_from_4ub (&clear_color, 0, 0, 0, 0); clutter_actor_get_position (actor, &x, &y); cogl_framebuffer_push_matrix (framebuffer); + cogl_color_init_from_4ub (&clear_color, 0, 0, 0, 0); cogl_framebuffer_clear (framebuffer, COGL_BUFFER_BIT_COLOR, &clear_color); cogl_framebuffer_orthographic (framebuffer, 0, 0, width, height, 0, 1.0); cogl_framebuffer_scale (framebuffer, resource_scale, resource_scale, 1);