[mutter/gbsneto/window-screencast-fixes: 8/8] window-actor: Paint screencast background with white



commit d84091e3140b5016cbfe9fe18c2f657cff444432
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Mar 18 21:16:52 2020 -0300

    window-actor: Paint screencast background with white
    
    The buffer rectangle contains the window shadow, but because
    the shadow itself is half transparent, it looks like there's
    a back border around the screencast.
    
    Painting it to solid white makes the window shadow visible
    and the stream looks better.
    
    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 e28cead3e..4cd95bd3e 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -1294,7 +1294,7 @@ meta_window_actor_blit_to_framebuffer (MetaScreenCastWindow *screen_cast_window,
 
   clutter_actor_get_position (actor, &x, &y);
 
-  cogl_color_init_from_4ub (&clear_color, 0, 0, 0, 0);
+  cogl_color_init_from_4ub (&clear_color, 255, 255, 255, 255);
   cogl_framebuffer_clear (framebuffer, COGL_BUFFER_BIT_COLOR, &clear_color);
   cogl_framebuffer_orthographic (framebuffer, 0, 0, width, height, 0, 1.0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]