这段代码:
TTF_Font * titania = TTF_OpenFont( "chintzy.ttf",28);
SDL_Color textColor = {255,255,0};
SDL_Surface * textSurface = TTF_RenderText_Solid(titania,"Its Working!",textColor);
std::cout << (int)textSurface->format->BytesPerPixel;
打印数字 1,表示 TTF_RenderTextSolid 返回的表面每个像素有一个字节。如果我是正确的,它应该是每个像素 4 个字节。有谁知道为什么会这样?