[Tizen] Fix npatch loader issue 32/219132/1 accepted/tizen/5.5/unified/20191206.013047 submit/tizen_5.5/20191204.073943 submit/tizen_5.5/20191205.041657
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 29 Nov 2019 08:12:02 +0000 (17:12 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 2 Dec 2019 08:26:55 +0000 (17:26 +0900)
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 )