clutter-utils: Fix a couple of coding style issues
Multiple assignments on the same line were split up, so was a super long line. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1124
This commit is contained in:
parent
0462208d4e
commit
62d0dd907b
@ -76,7 +76,8 @@ meta_actor_vertices_are_untransformed (graphene_point3d_t *verts,
|
|||||||
int v0x, v0y, v1x, v1y, v2x, v2y, v3x, v3y;
|
int v0x, v0y, v1x, v1y, v2x, v2y, v3x, v3y;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
width = round_to_fixed (widthf); height = round_to_fixed (heightf);
|
width = round_to_fixed (widthf);
|
||||||
|
height = round_to_fixed (heightf);
|
||||||
|
|
||||||
v0x = round_to_fixed (verts[0].x); v0y = round_to_fixed (verts[0].y);
|
v0x = round_to_fixed (verts[0].x); v0y = round_to_fixed (verts[0].y);
|
||||||
v1x = round_to_fixed (verts[1].x); v1y = round_to_fixed (verts[1].y);
|
v1x = round_to_fixed (verts[1].x); v1y = round_to_fixed (verts[1].y);
|
||||||
@ -165,7 +166,11 @@ meta_actor_painting_untransformed (CoglFramebuffer *fb,
|
|||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
float w = 1;
|
float w = 1;
|
||||||
cogl_matrix_transform_point (&modelview_projection, &vertices[i].x, &vertices[i].y, &vertices[i].z, &w);
|
cogl_matrix_transform_point (&modelview_projection,
|
||||||
|
&vertices[i].x,
|
||||||
|
&vertices[i].y,
|
||||||
|
&vertices[i].z,
|
||||||
|
&w);
|
||||||
vertices[i].x = MTX_GL_SCALE_X (vertices[i].x, w,
|
vertices[i].x = MTX_GL_SCALE_X (vertices[i].x, w,
|
||||||
viewport[2], viewport[0]);
|
viewport[2], viewport[0]);
|
||||||
vertices[i].y = MTX_GL_SCALE_Y (vertices[i].y, w,
|
vertices[i].y = MTX_GL_SCALE_Y (vertices[i].y, w,
|
||||||
|
Loading…
Reference in New Issue
Block a user