This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (unsigned int i = 0; i < frame_size; i++) | |
| { | |
| uint8_t Palette_Index; | |
| memcpy(&Palette_Index, (uint8_t*)Paletted_Surface->pixels + i, sizeof(uint8_t)); | |
| uint32_t w_PaletteColor = 0; | |
| w_PaletteColor = (uint32_t)(&pxlFMT_Pal.palette + Palette_Index); | |
| ((uint32_t*)Output_Surface->pixels)[i] = w_PaletteColor; | |
| //int w_smallest = INT_MAX; |