elementary/els_icon - reduced codes

SVN revision: 60709
This commit is contained in:
ChunEon Park 2011-06-27 01:56:40 +00:00
parent ac00e7c120
commit 73a5a53df3
1 changed files with 3 additions and 4 deletions

View File

@ -446,10 +446,11 @@ _smart_reconfigure(Smart_Data *sd)
if (iw < 1) iw = 1;
if (ih < 1) ih = 1;
w = sd->w;
h = ((double)ih * w) / (double)iw;
if (sd->fill_inside)
{
w = sd->w;
h = ((double)ih * w) / (double)iw;
if (h > sd->h)
{
h = sd->h;
@ -458,8 +459,6 @@ _smart_reconfigure(Smart_Data *sd)
}
else
{
w = sd->w;
h = ((double)ih * w) / (double)iw;
if (h < sd->h)
{
h = sd->h;