From: Bartlomiej Kunikowski Date: Mon, 13 Feb 2017 10:34:37 +0000 (+0100) Subject: Changes that are related to changes in LaunchScreenData structure X-Git-Tag: submit/tizen/20170313.110550~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ed0059726ccfa4673a85b3ce3f02745d145a5e2;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Changes that are related to changes in LaunchScreenData structure Change-Id: I556c4443df06cdbd55588447c00082b9219d6ebd --- diff --git a/runtime/browser/splash_screen.cc b/runtime/browser/splash_screen.cc index 89649c6bd..6b7b45622 100755 --- a/runtime/browser/splash_screen.cc +++ b/runtime/browser/splash_screen.cc @@ -169,11 +169,11 @@ void SplashScreen::SetBackground( std::vector border_values; std::vector border_options; - if (!splash_data.background_image.empty() && + if (!splash_data.background_images.empty() && ParseImageBorder( splash_data.image_border, &border_values, &border_options)) { const std::string& background_image_path = - splash_data.background_image.front(); + splash_data.background_images.front().first; background_image_ = elm_image_add(background_); evas_object_image_file_set(background_image_, @@ -222,7 +222,9 @@ void SplashScreen::SetImage( image_ = elm_image_add(background_); if (!image_) return; - const std::string& image_path = splash_data.image.front(); + if (splash_data.images.empty()) return; + + const std::string& image_path = splash_data.images.front().first; elm_image_file_set(image_, (app_path + image_path).c_str(), NULL); evas_object_resize(image_, bound.first, bound.second); evas_object_show(image_);