Emotion: prefer ratio to calculate sizes
authorDave Andreoli <dave@gurumeditation.it>
Sat, 15 Oct 2016 18:59:57 +0000 (20:59 +0200)
committerDave Andreoli <dave@gurumeditation.it>
Sun, 16 Oct 2016 06:19:30 +0000 (08:19 +0200)
commitb8ae4947b6577cc8b5ad173615fac809b13d0800
treeeeafcc1f6365f63c4cecdfbb9ba051113f544609
parent14aca77bfca6e5a50f9fa519e955a5b752f4d6b4
Emotion: prefer ratio to calculate sizes

Instead of calculate the ratio from the sizes, calc the width from the ratio,
as ratio seems always accurate.
Fallback to the old code if ratio not available (tbh I never see this case)

@Fix EMOTION_ASPECT_KEEP_BOTH with some rare strams, mostly DVD and online stuff
src/lib/emotion/emotion_smart.c