mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
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
This commit is contained in:
parent
d846fabda2
commit
82778f72a4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user