cursor-renderer/native: Pass destination format to scale_and_transform
Preparation for next commit, no functional change intended. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4255>
This commit is contained in:
parent
ad754af151
commit
7e4cae2f91
@ -774,6 +774,7 @@ scale_and_transform_cursor_sprite_cpu (MetaCursorRendererNative *cursor_renderer
|
|||||||
int height,
|
int height,
|
||||||
int rowstride,
|
int rowstride,
|
||||||
const graphene_matrix_t *matrix,
|
const graphene_matrix_t *matrix,
|
||||||
|
CoglPixelFormat dst_format,
|
||||||
int dst_width,
|
int dst_width,
|
||||||
int dst_height,
|
int dst_height,
|
||||||
GError **error)
|
GError **error)
|
||||||
@ -801,7 +802,7 @@ scale_and_transform_cursor_sprite_cpu (MetaCursorRendererNative *cursor_renderer
|
|||||||
dst_texture = cogl_texture_2d_new_with_format (cogl_context,
|
dst_texture = cogl_texture_2d_new_with_format (cogl_context,
|
||||||
dst_width,
|
dst_width,
|
||||||
dst_height,
|
dst_height,
|
||||||
COGL_PIXEL_FORMAT_BGRA_8888_PRE);
|
dst_format);
|
||||||
offscreen = cogl_offscreen_new_with_texture (dst_texture);
|
offscreen = cogl_offscreen_new_with_texture (dst_texture);
|
||||||
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (offscreen), error))
|
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (offscreen), error))
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -976,6 +977,7 @@ load_scaled_and_transformed_cursor_sprite (MetaCursorRendererNative *native,
|
|||||||
height,
|
height,
|
||||||
rowstride,
|
rowstride,
|
||||||
&matrix,
|
&matrix,
|
||||||
|
COGL_PIXEL_FORMAT_BGRA_8888_PRE,
|
||||||
crtc_dst_width,
|
crtc_dst_width,
|
||||||
crtc_dst_height,
|
crtc_dst_height,
|
||||||
&error);
|
&error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user