Lines Matching refs:thisPal
80 static void TCSwapPalette ( TCPalette* thisPal, TCPalette* thatPal );
242 TCPalette* thisPal, *nextPal; in TCSortPaletteByIndex() local
250 thisPal = PlHead; in TCSortPaletteByIndex()
251 while( thisPal->next ) in TCSortPaletteByIndex()
253 nextPal = thisPal->next; in TCSortPaletteByIndex()
255 if( nextPal->index < thisPal->index ) in TCSortPaletteByIndex()
258 TCSwapPalette( thisPal, nextPal ); in TCSortPaletteByIndex()
260 thisPal = PlHead; in TCSortPaletteByIndex()
264 thisPal = thisPal->next; in TCSortPaletteByIndex()
269 static void TCSwapPalette ( TCPalette* thisPal, TCPalette* thatPal ) in TCSwapPalette() argument
274 tmpPl.index = thisPal->index; in TCSwapPalette()
275 tmpPl.srcImage = thisPal->srcImage; in TCSwapPalette()
276 tmpPl.entryFormat = thisPal->entryFormat; in TCSwapPalette()
277 tmpPl.palPtr = thisPal->palPtr; in TCSwapPalette()
278 tmpPl.tplPaletteBankOffset = thisPal->tplPaletteBankOffset; in TCSwapPalette()
279 tmpPl.tplBufferSize = thisPal->tplBufferSize; in TCSwapPalette()
281 thisPal->index = thatPal->index; in TCSwapPalette()
282 thisPal->srcImage = thatPal->srcImage; in TCSwapPalette()
283 thisPal->entryFormat = thatPal->entryFormat; in TCSwapPalette()
284 thisPal->palPtr = thatPal->palPtr; in TCSwapPalette()
285 thisPal->tplPaletteBankOffset = thatPal->tplPaletteBankOffset; in TCSwapPalette()
286 thisPal->tplBufferSize = thatPal->tplBufferSize; in TCSwapPalette()