summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-02-21 10:57:28 +0000
committerSung-jae Park <nicesj.park@samsung.com>2013-02-21 10:57:28 +0000
commit244e4f80aa5860c46e3aaea1d3546eb979c0cabb (patch)
treefc35d31fd9c2ca8368048f99fb00e854ef2e3e62
parent3330f802b132d77beb0635b6772696deb90530d4 (diff)
downloadlivebox-service-244e4f80aa5860c46e3aaea1d3546eb979c0cabb.tar.gz
livebox-service-244e4f80aa5860c46e3aaea1d3546eb979c0cabb.tar.bz2
livebox-service-244e4f80aa5860c46e3aaea1d3546eb979c0cabb.zip
Sync with the latest code.
Use the same scale factor for width & height. Change-Id: Idb6e1fa9ac6262f74b9d0067a3f69ffaec513114
-rw-r--r--packaging/liblivebox-service.spec2
-rw-r--r--src/livebox-service.c2
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);
}