mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
screen-cast/window-src: Report alpha-enabled pixel format
This allows windows screencasts with proper shadows, instead of a black border around the window! Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2099 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3175>
This commit is contained in:
parent
215b91a2e6
commit
d4c923edf9
@ -619,6 +619,12 @@ meta_screen_cast_window_stream_src_set_cursor_metadata (MetaScreenCastStreamSrc
|
||||
}
|
||||
}
|
||||
|
||||
static CoglPixelFormat
|
||||
meta_screen_cast_window_stream_src_get_preferred_format (MetaScreenCastStreamSrc *src)
|
||||
{
|
||||
return COGL_PIXEL_FORMAT_BGRA_8888_PRE;
|
||||
}
|
||||
|
||||
MetaScreenCastWindowStreamSrc *
|
||||
meta_screen_cast_window_stream_src_new (MetaScreenCastWindowStream *window_stream,
|
||||
GError **error)
|
||||
@ -651,4 +657,6 @@ meta_screen_cast_window_stream_src_class_init (MetaScreenCastWindowStreamSrcClas
|
||||
meta_screen_cast_window_stream_record_follow_up;
|
||||
src_class->get_videocrop = meta_screen_cast_window_stream_src_get_videocrop;
|
||||
src_class->set_cursor_metadata = meta_screen_cast_window_stream_src_set_cursor_metadata;
|
||||
src_class->get_preferred_format =
|
||||
meta_screen_cast_window_stream_src_get_preferred_format;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user