-void DiskSelector::DrawCharacter(SDL_Renderer * renderer, int x, int y, uint8_t c, bool invert/*=false*/)
-{
- uint32_t inv = (invert ? 0x000000FF : 0x00000000);
- uint32_t pixel = 0xFFFFC000; // RRGGBBAA
- uint8_t * ptr = (uint8_t *)&font10pt[(c - 0x20) * FONT_WIDTH * FONT_HEIGHT];
- SDL_Rect dst;
- dst.x = x * FONT_WIDTH, dst.y = y * FONT_HEIGHT, dst.w = FONT_WIDTH, dst.h = FONT_HEIGHT;
-
- for(int i=0; i<FONT_WIDTH*FONT_HEIGHT; i++)
- stamp[i] = (pixel | ptr[i]) ^ inv;
-
- SDL_UpdateTexture(charStamp, NULL, stamp, FONT_WIDTH * sizeof(Uint32));
- SDL_RenderCopy(renderer, charStamp, NULL, &dst);
-}
-
-