From 3868debcc97f72b53981c28c5ec26e068ea367f1 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Tue, 5 Mar 2013 09:49:46 +0000 Subject: [PATCH] livebox_get_pdsize can be used to get the default pd size. If a PD is not created yet, client can get its default size using livebox_get_pdsize function. Change-Id: I78fb4520fbc87b0c8614f1b4975a0c17943808fd --- packaging/liblivebox-viewer.spec | 2 +- src/livebox.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index f24782d..55bca03 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -1,6 +1,6 @@ Name: liblivebox-viewer Summary: Library for developing the application. -Version: 0.9.9 +Version: 0.9.10 Release: 1 Group: framework/livebox License: Flora License diff --git a/src/livebox.c b/src/livebox.c index 3356ac6..845e934 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -1254,11 +1254,8 @@ EAPI int livebox_get_pdsize(struct livebox *handler, int *w, int *h) switch (handler->pd.type) { case _PD_TYPE_BUFFER: case _PD_TYPE_SCRIPT: - if (!handler->is_pd_created) { - DbgPrint("Buffer is not created yet - reset size\n"); - *w = 0; - *h = 0; - } + if (!handler->is_pd_created) + DbgPrint("Buffer is not created yet [%dx%d]\n", *w, *h); break; default: break; -- 2.7.4