| 238 | } |
| 239 | |
| 240 | void cGraphics_PC::PaletteLoad( const uint8 *pBuffer, uint32 pColors, uint32 pColorID ) { |
| 241 | size_t colorStartID = pColorID; |
| 242 | |
| 243 | if (pColors >= g_MaxColors) |
| 244 | pColors = g_MaxColors - 1; |
| 245 | |
| 246 | for (; pColorID < pColors + colorStartID; pColorID++) { |
| 247 | |
| 248 | // Get the next color values |
| 249 | mPalette[pColorID].mRed = *pBuffer++; |
| 250 | mPalette[pColorID].mGreen = *pBuffer++; |
| 251 | mPalette[pColorID].mBlue = *pBuffer++; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | void cGraphics_PC::PaletteSetOverview() { |
| 256 |
nothing calls this directly
no outgoing calls
no test coverage detected