Fixed swizzle of SDL_FillRect() on 24-bit surface (thanks, "nagydavid91"!).
Fixes Bugzilla #2986.
4 * Source file with miscellaneous helper functions.
10 SDLVisualTest_HashString(char* str, char hash[33])
12 SDLTest_Md5Context md5c;
17 SDLTest_LogError("str argument cannot be NULL");
21 SDLTest_Md5Init(&md5c);
22 SDLTest_Md5Update(&md5c, (unsigned char*)str, SDL_strlen(str));
23 SDLTest_Md5Final(&md5c);
25 /* convert the md5 hash to an array of hexadecimal digits */
26 for(i = 0; i < 16; i++)
27 SDL_snprintf(hash + 2 * i, 33 - 2 * i, "%02x", (int)md5c.digest[i]);