shaped-texture: Don't set a small minimum size

The shaped-texture is effectively fixed size. It doesn't make sense to
have less allocation than requested.
This commit is contained in:
Jasper St. Pierre 2014-08-26 15:05:05 -04:00
parent a6fcda69ac
commit b091cbf361

View File

@ -505,7 +505,7 @@ meta_shaped_texture_get_preferred_width (ClutterActor *self,
priv = META_SHAPED_TEXTURE (self)->priv; priv = META_SHAPED_TEXTURE (self)->priv;
if (min_width_p) if (min_width_p)
*min_width_p = 0; *min_width_p = priv->tex_width;
if (natural_width_p) if (natural_width_p)
*natural_width_p = priv->tex_width; *natural_width_p = priv->tex_width;
@ -524,7 +524,7 @@ meta_shaped_texture_get_preferred_height (ClutterActor *self,
priv = META_SHAPED_TEXTURE (self)->priv; priv = META_SHAPED_TEXTURE (self)->priv;
if (min_height_p) if (min_height_p)
*min_height_p = 0; *min_height_p = priv->tex_height;
if (natural_height_p) if (natural_height_p)
*natural_height_p = priv->tex_height; *natural_height_p = priv->tex_height;