X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fbuffer-image-impl.cpp;h=c8a69881a7c5f164effebb8760823831b9fe3187;hb=45c3b5e28eff719a2f93f39bf2ce618e87dc1916;hp=7879f061d883901940111386b6e7350ddcff21f7;hpb=4dc37629dd59d48e00bf17496ba0b76fe137af0c;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..c8a6988 100644 --- a/dali/internal/event/images/buffer-image-impl.cpp +++ b/dali/internal/event/images/buffer-image-impl.cpp @@ -34,11 +34,6 @@ namespace Dali namespace Internal { -namespace -{ -TypeRegistration mType( typeid( Dali::BufferImage ), typeid( Dali::Image ), NULL ); -} // unnamed namespace - BufferImagePtr BufferImage::New( unsigned int width, unsigned int height, Pixel::Format pixelformat ) @@ -139,8 +134,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 ?