mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
Add a cast in shaped-texture.c to prevent warnings about comparing
signed and unsigned integers.
This commit is contained in:
parent
99d3cc1b2b
commit
0bbe8b8004
@ -258,8 +258,8 @@ meta_shaped_texture_ensure_mask (MetaShapedTexture *stex)
|
||||
GL_TEXTURE_HEIGHT,
|
||||
&priv->mask_gl_height);
|
||||
|
||||
if (priv->mask_gl_width == tex_width
|
||||
&& priv->mask_gl_height == tex_height)
|
||||
if ((guint) priv->mask_gl_width == tex_width
|
||||
&& (guint) priv->mask_gl_height == tex_height)
|
||||
meta_shaped_texture_set_coord_array (0.0f, 0.0f, 1.0f, 1.0f,
|
||||
priv->mask_tex_coords);
|
||||
else
|
||||
@ -375,7 +375,8 @@ meta_shaped_texture_paint (ClutterActor *actor)
|
||||
- alloc.y1),
|
||||
vertex_coords);
|
||||
|
||||
if (paint_gl_width == tex_width && paint_gl_height == tex_height)
|
||||
if ((guint) paint_gl_width == tex_width
|
||||
&& (guint) paint_gl_height == tex_height)
|
||||
meta_shaped_texture_set_coord_array (0.0f, 0.0f, 1.0f, 1.0f,
|
||||
paint_tex_coords);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user