X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=inline;f=dali%2Finternal%2Fevent%2Fimages%2Fbuffer-image-impl.cpp;h=c34dede406a3343b26c1e6152d8bf4da432fbb93;hb=8af0fa76e966af31744fec96907f219559ce9a66;hp=7879f061d883901940111386b6e7350ddcff21f7;hpb=c1f70c3022befdf697c595bcd17dc04d5ad60cea;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 7879f06..68c0027 100644 --- a/dali/internal/event/images/buffer-image-impl.cpp +++ b/dali/internal/event/images/buffer-image-impl.cpp @@ -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 ?