X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fbuffer-image-impl.cpp;h=68c002782f9c3b5647042f3ab138aac5be1f1e89;hb=a167df9844d0a4fb3bab4b6782da4785b614041b;hp=a689537001959f4ef1939b7b183a58209582e14f;hpb=8e11ca6446b03f89bcc59bd1d023e71944b06bf9;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/images/buffer-image-impl.cpp b/dali/internal/event/images/buffer-image-impl.cpp index a689537..68c0027 100644 --- a/dali/internal/event/images/buffer-image-impl.cpp +++ b/dali/internal/event/images/buffer-image-impl.cpp @@ -127,7 +127,7 @@ void BufferImage::Update( const RectArea& updateArea ) { if ( !mTexture ) { - mTexture = NewTexture::New( Dali::TextureType::TEXTURE_2D, mPixelFormat, mWidth, mHeight ); + mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, mPixelFormat, mWidth, mHeight ); } DALI_ASSERT_DEBUG( updateArea.x + updateArea.width <= mWidth && updateArea.y + updateArea.height <= mHeight ); UploadArea( updateArea ); @@ -139,8 +139,8 @@ void BufferImage::UploadArea( const RectArea& area ) mBufferWidth = area.width ? area.width : mWidth; uint32_t bufferHeight = area.height ? area.height : mHeight; - size_t bufferSize = mBytesPerPixel * mBufferWidth * bufferHeight; - unsigned char* buffer = reinterpret_cast< Dali::Integration::PixelBuffer* >( malloc( bufferSize ) ); + uint32_t bufferSize = mBytesPerPixel * mBufferWidth * bufferHeight; + Dali::Integration::PixelBuffer* buffer = reinterpret_cast< Dali::Integration::PixelBuffer* >( malloc( bufferSize ) ); DALI_ASSERT_DEBUG(buffer != 0); // Are we uploading from an external or internal buffer ?