From 2b8c2dd0cebd7598ad6abd154067a4238f6e4b51 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Tue, 5 Mar 2013 11:04:34 +0000 Subject: [PATCH] Get the default PD size even though it is not created. Change-Id: Ib31cac7fef1b3e9e35aa7d97b9047c8eb154b768 --- 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