octree.cxx (9f62ea84) octree.cxx (87bc88d3)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 116 unchanged lines hidden (view full) ---

125 const long nHeight = pAcc->Height();
126
127 if( pAcc->HasPalette() )
128 {
129 for( long nY = 0; nY < nHeight; nY++ )
130 {
131 for( long nX = 0; nX < nWidth; nX++ )
132 {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 116 unchanged lines hidden (view full) ---

125 const long nHeight = pAcc->Height();
126
127 if( pAcc->HasPalette() )
128 {
129 for( long nY = 0; nY < nHeight; nY++ )
130 {
131 for( long nX = 0; nX < nWidth; nX++ )
132 {
133 pColor = &(BitmapColor&) pAcc->GetPaletteColor( pAcc->GetPixel( nY, nX ) );
133 pColor = &(BitmapColor&) pAcc->GetPaletteColor( pAcc->GetPixelIndex( nY, nX ) );
134 nLevel = 0L;
135 ImplAdd( &pTree );
136
137 while( nLeafCount > nMax )
138 ImplReduce();
139 }
140 }
141 }

--- 227 unchanged lines hidden ---
134 nLevel = 0L;
135 ImplAdd( &pTree );
136
137 while( nLeafCount > nMax )
138 ImplReduce();
139 }
140 }
141 }

--- 227 unchanged lines hidden ---