Commit 24424fa546dad5bfac1920097c48d9016f59b29c
[dali_1.2.63] Merge branch 'devel/master'
Change-Id: Ibcd4c26f16c32f32af29e1288a5654fb6c78f05b
Showing
3 changed files
with
9 additions
and
5 deletions
examples/text-label/text-label-example.cpp
| ... | ... | @@ -303,8 +303,11 @@ public: |
| 303 | 303 | |
| 304 | 304 | mShadowActive = ( shadowOffset == Vector2::ZERO ) ? false : true; |
| 305 | 305 | |
| 306 | - mLabel.SetProperty( TextLabel::Property::SHADOW_OFFSET, shadowOffset ); | |
| 307 | - mLabel.SetProperty( TextLabel::Property::SHADOW_COLOR, mSelectedColor ); | |
| 306 | + Property::Map shadowMap; | |
| 307 | + shadowMap.Insert( "offset", shadowOffset ); | |
| 308 | + shadowMap.Insert( "color", mSelectedColor ); | |
| 309 | + shadowMap.Insert( "blurRadius", 2.0f ); | |
| 310 | + mLabel.SetProperty( TextLabel::Property::SHADOW, shadowMap ); | |
| 308 | 311 | } |
| 309 | 312 | return true; |
| 310 | 313 | } | ... | ... |
packaging/com.samsung.dali-demo.spec
shared/utility.h
| ... | ... | @@ -29,9 +29,10 @@ namespace DemoHelper |
| 29 | 29 | Dali::Texture LoadTexture( const char* imagePath, |
| 30 | 30 | Dali::ImageDimensions size = Dali::ImageDimensions(), |
| 31 | 31 | Dali::FittingMode::Type fittingMode = Dali::FittingMode::DEFAULT, |
| 32 | - Dali::SamplingMode::Type samplingMode = Dali::SamplingMode::DEFAULT ) | |
| 32 | + Dali::SamplingMode::Type samplingMode = Dali::SamplingMode::DEFAULT, | |
| 33 | + bool orientationCorrection = true ) | |
| 33 | 34 | { |
| 34 | - Dali::Devel::PixelBuffer pixelBuffer = LoadImageFromFile(imagePath, size, fittingMode, samplingMode); | |
| 35 | + Dali::Devel::PixelBuffer pixelBuffer = LoadImageFromFile(imagePath, size, fittingMode, samplingMode, orientationCorrection ); | |
| 35 | 36 | Dali::Texture texture = Dali::Texture::New( Dali::TextureType::TEXTURE_2D, |
| 36 | 37 | pixelBuffer.GetPixelFormat(), |
| 37 | 38 | pixelBuffer.GetWidth(), | ... | ... |