Sync with the latest code.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 21 Feb 2013 10:57:28 +0000 (10:57 +0000)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 21 Feb 2013 10:57:28 +0000 (10:57 +0000)
Use the same scale factor for width & height.

Change-Id: Idb6e1fa9ac6262f74b9d0067a3f69ffaec513114

packaging/liblivebox-service.spec
src/livebox-service.c

index 25d34d5..d19ae30 100644 (file)
@@ -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
index d1a2610..cfb092a 100644 (file)
@@ -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);
        }