From 335ec40189918bb94f2e52424c1c57dfe00a4cfd Mon Sep 17 00:00:00 2001 From: Wonkeun Oh Date: Tue, 3 Mar 2015 16:59:55 +0900 Subject: [PATCH] Enabled highlight ui and set nine_patch to highlight_ui_image Change-Id: I0622c346f018edbbd0dee4bb6d66cb83b36040cc --- scl/gwes/efl/sclgraphics-efl.cpp | 5 +++++ scl/include/sclconfig.h | 2 +- scl/sclcontext.cpp | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/scl/gwes/efl/sclgraphics-efl.cpp b/scl/gwes/efl/sclgraphics-efl.cpp index e60d220..db9a0ad 100644 --- a/scl/gwes/efl/sclgraphics-efl.cpp +++ b/scl/gwes/efl/sclgraphics-efl.cpp @@ -230,6 +230,11 @@ CSCLGraphicsImplEfl::draw_image(sclwindow window, const scldrawctx draw_ctx, scl Evas_Object *image_object = NULL; if (is_highlight_ui && m_highlight_ui_object) { image_object = m_highlight_ui_object; + const SclNinePatchInfo *nine_patch_info = utils->get_nine_patch_info(image_path); + if (nine_patch_info) { + evas_object_image_border_set(image_object, + nine_patch_info->left, nine_patch_info->right, nine_patch_info->top, nine_patch_info->bottom); + } evas_object_move(image_object, dest_x, dest_y); evas_object_raise(image_object); evas_object_show(image_object); diff --git a/scl/include/sclconfig.h b/scl/include/sclconfig.h index 4756b85..f707545 100644 --- a/scl/include/sclconfig.h +++ b/scl/include/sclconfig.h @@ -451,7 +451,7 @@ typedef enum _SCLStartingCoordinatesOption { #define SCL_AUTO_DETECT_PORTRAIT_LANDSCAPE TRUE /* FIXME : This should be configurable also */ -#define SCL_HIGHLIGHT_UI_IMAGE "B09_icon_cue.png" +#define SCL_HIGHLIGHT_UI_IMAGE "button/B09_Qwerty_btn_highlight.png" #define SCL_ANIMATION_TIMER_INTERVAL (1000 / 30) // 30 frames per second #define SCL_ANIMATION_TIME 300 // Animation for 300 ms diff --git a/scl/sclcontext.cpp b/scl/sclcontext.cpp index 0c2744a..f328dbe 100644 --- a/scl/sclcontext.cpp +++ b/scl/sclcontext.cpp @@ -68,7 +68,11 @@ CSCLContext::reset() m_sounce_enabled = TRUE; m_vibration_enabled = TRUE; m_shift_multi_touch_enabled = TRUE; +#ifdef _TV + m_highlight_ui_enabled = TRUE; +#else m_highlight_ui_enabled = FALSE; +#endif m_highlight_ui_animation_enabled = FALSE; m_tts_enabled = FALSE; -- 2.7.4