src: Use graphene APIs

This commit encompasses the trivial ones.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
Georges Basile Stavracas Neto
2020-09-11 19:12:54 -03:00
parent f676861054
commit f6998f87c2
3 changed files with 11 additions and 10 deletions

View File

@ -131,11 +131,10 @@ draw_view (MetaStageX11Nested *stage_nested,
&transform);
cogl_framebuffer_push_matrix (onscreen);
cogl_matrix_init_identity (&projection_matrix);
cogl_matrix_translate (&projection_matrix, -1, 1, 0);
cogl_matrix_scale (&projection_matrix, 2, -2, 0);
cogl_matrix_multiply (&projection_matrix, &projection_matrix, &transform);
graphene_matrix_init_scale (&projection_matrix, 2, -2, 0);
graphene_matrix_translate (&projection_matrix,
&GRAPHENE_POINT3D_INIT (-1, 1, 0));
graphene_matrix_multiply (&transform, &projection_matrix, &projection_matrix);
cogl_framebuffer_set_projection_matrix (onscreen, &projection_matrix);
s_1 = sample_x / texture_width;