mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
dc2aee4300
commit
92b1a33eb3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user