31 #define SDL_TESTFONTDATAMAX (8*256)
3126 const unsigned char *charpos;
3140 srect.
w = charWidth;
3141 srect.
h = charHeight;
3148 drect.
w = charWidth;
3149 drect.
h = charHeight;
3152 ci = (
unsigned char)c;
3157 if (SDLTest_CharTextureCache[ci] ==
NULL) {
3162 charWidth, charHeight, 32,
3163 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);
3164 if (character ==
NULL) {
3170 pitch = character->
pitch;
3176 for (iy = 0; iy < charWidth; iy++) {
3179 for (ix = 0; ix < charWidth; ix++) {
3180 if (!(mask >>= 1)) {
3185 *(
Uint32 *)curpos = 0xffffffff;
3201 if (SDLTest_CharTextureCache[ci] ==
NULL) {
3217 result |=
SDL_RenderCopy(renderer, SDLTest_CharTextureCache[ci], &srect, &drect);
3228 const char *curchar =
s;
3230 while (*curchar && !result) {
3243 if (SDLTest_CharTextureCache[i]) {
3245 SDLTest_CharTextureCache[
i] =
NULL;