texture: Default square textures to height-for-width

Square textures should have a preferred geometry request set to
height-for-width, as it is the default for Clutter itself.
This commit is contained in:
Emmanuele Bassi 2010-08-16 15:56:49 +01:00
parent dc2aee4300
commit 92b1a33eb3

View File

@ -1416,7 +1416,7 @@ clutter_texture_set_cogl_texture (ClutterTexture *texture,
{
ClutterRequestMode request;
if (priv->image_width > priv->image_height)
if (priv->image_width >= priv->image_height)
request = CLUTTER_REQUEST_HEIGHT_FOR_WIDTH;
else
request = CLUTTER_REQUEST_WIDTH_FOR_HEIGHT;