From 244e4f80aa5860c46e3aaea1d3546eb979c0cabb Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 21 Feb 2013 10:57:28 +0000 Subject: [PATCH] Sync with the latest code. Use the same scale factor for width & height. Change-Id: Idb6e1fa9ac6262f74b9d0067a3f69ffaec513114 --- packaging/liblivebox-service.spec | 2 +- src/livebox-service.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/liblivebox-service.spec b/packaging/liblivebox-service.spec index 25d34d5..d19ae30 100644 --- a/packaging/liblivebox-service.spec +++ b/packaging/liblivebox-service.spec @@ -1,6 +1,6 @@ Name: liblivebox-service Summary: Service API for gathering installed livebox information. -Version: 0.3.3 +Version: 0.3.5 Release: 1 Group: framework/livebox License: Flora License diff --git a/src/livebox-service.c b/src/livebox-service.c index d1a2610..cfb092a 100644 --- a/src/livebox-service.c +++ b/src/livebox-service.c @@ -277,7 +277,7 @@ static int update_resolution(void) DbgPrint("Screen resolution: %dx%d\n", width, height); for (i = 0; i < NR_OF_SIZE_LIST; i++) { SIZE_LIST[i].w = (unsigned int)((double)SIZE_LIST[i].w * (double)width / 720.0f); - SIZE_LIST[i].h = (unsigned int)((double)SIZE_LIST[i].h * (double)height / 1280.0f); + SIZE_LIST[i].h = (unsigned int)((double)SIZE_LIST[i].h * (double)width / 720.0f); DbgPrint("(Ratio)Size is updated [%d] %dx%d\n", i, SIZE_LIST[i].w, SIZE_LIST[i].h); } -- 2.7.4