File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,6 +246,8 @@ void VNCEncodeTRLE::begin() {
246246 (currentInfo.nColors > 1 ) &&
247247 (mapColors ? canReuseColorsPalette (&lastInfo, ¤tInfo) : (lastInfo.nColors == nativeColors));
248248 if (canReuse) info = &lastInfo;
249+ #else
250+ const Boolean canReuse = false ;
249251 #endif
250252
251253 if (currentInfo.nColors > 1 ) {
@@ -278,7 +280,7 @@ void VNCEncodeTRLE::begin() {
278280 if (currentInfo.nColors <= 4 ) {
279281 #endif
280282 tileDepth = getDepth (currentInfo.nColors );
281- const unsigned long bitsPerRow = /* (unsigned short) */ epb.cols * tileDepth;
283+ const unsigned long bitsPerRow = epb.cols * tileDepth;
282284 const unsigned long bytesPerRow = (bitsPerRow + 7 ) / 8 ;
283285 const Boolean rowDivisibleByBytes = (bitsPerRow % 8 ) == 0 ;
284286 const unsigned long packedTileLen = 1 + (canReuse ? 0 : paletteLen) + bytesPerRow * epb.rows ;
You can’t perform that action at this time.
0 commit comments