Fix npatch loader issue 81/218981/2
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 29 Nov 2019 08:12:02 +0000 (17:12 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 9 Dec 2019 08:56:35 +0000 (08:56 +0000)
The pixel pointer should be updated after ParseRange method.
Use reference of a pointer

Change-Id: I35b711c73faa5b7a36f5f3dc70825e6fbf4c955a

dali-toolkit/internal/visuals/npatch-loader.cpp

index 209840b..e89ebcb 100644 (file)
@@ -157,7 +157,7 @@ void GetRedOffsetAndMask( Dali::Pixel::Format pixelFormat, int& byteOffset, int&
   }
 }
 
-Uint16Pair ParseRange( unsigned int& index, unsigned int width, unsigned char* pixel, unsigned int pixelStride, int testByte, int testBits, int testValue )
+Uint16Pair ParseRange( unsigned int& index, unsigned int width, unsigned char*& pixel, unsigned int pixelStride, int testByte, int testBits, int testValue )
 {
   unsigned int start = 0xFFFF;
   for( ; index < width; ++index, pixel += pixelStride )