X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fresource-image-impl.cpp;h=5efe56752f97a2af9fd8b94fad3e1f27283156ca;hb=698c38bd1a76158dd449639aaf014d7046dd3ae4;hp=ea72dcb044f6ea439b09e38c5b89597f2da03874;hpb=c1c848dc18d24b5796846bd48e595bb798d41065;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/images/resource-image-impl.cpp b/dali/internal/event/images/resource-image-impl.cpp index ea72dcb..5efe567 100644 --- a/dali/internal/event/images/resource-image-impl.cpp +++ b/dali/internal/event/images/resource-image-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -159,7 +159,7 @@ void ResourceImage::Reload() mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, format, width, height ); //Upload data to the texture - size_t bufferSize = bitmap->GetBufferSize(); + uint32_t bufferSize = bitmap->GetBufferSize(); PixelDataPtr pixelData = PixelData::New( bitmap->GetBufferOwnership(), bufferSize, width, height, format, static_cast< Dali::PixelData::ReleaseFunction >( bitmap->GetReleaseFunction() ) ); mTexture->Upload( pixelData ); @@ -202,7 +202,7 @@ unsigned int ResourceImage::GetHeight() const Vector2 ResourceImage::GetNaturalSize() const { - return Vector2(mWidth, mHeight); + return Vector2( static_cast( mWidth ), static_cast( mHeight ) ); }