SDL_test: use SDLCALL calling convention

This is needed when using a pre-built static SDL3_test library.
This commit is contained in:
Anonymous Maarten
2024-09-06 03:21:13 +02:00
committed by Anonymous Maarten
parent 379aea5c2d
commit db96ddca34
38 changed files with 444 additions and 452 deletions

View File

@@ -40,7 +40,7 @@ Uint32 getRandomUint32() {
/*
* Resets PRNG state to initialize tests using PRNG
*/
void blitSetUp(void **arg) {
void SDLCALL blitSetUp(void **arg) {
rngState[0] = 1;
rngState[1] = 2;
}
@@ -96,7 +96,7 @@ Uint32 hashSurfacePixels(SDL_Surface * surface) {
* Tests rendering a rainbow gradient background onto a blank surface, then rendering a sprite with complex geometry and
* transparency on top of said surface, and comparing the result to known accurate renders with a hash.
*/
int blit_testExampleApplicationRender(void *arg) {
static int SDLCALL blit_testExampleApplicationRender(void *arg) {
const int width = 32;
const int height = 32;
const Uint32 correct_hash = 0xe345d7a7;
@@ -123,7 +123,7 @@ int blit_testExampleApplicationRender(void *arg) {
* different source and destination pixel formats, without an alpha shuffle, at SVGA resolution. Compares to known
* accurate renders with a hash.
*/
int blit_testRandomToRandomSVGA(void *arg) {
static int SDLCALL blit_testRandomToRandomSVGA(void *arg) {
const int width = 800;
const int height = 600;
const Uint32 correct_hash = 0x42140c5f;
@@ -152,7 +152,7 @@ int blit_testRandomToRandomSVGA(void *arg) {
* shift operations between the different source and destination pixel formats, including an alpha shuffle. Compares to
* known accurate renders with a hash.
*/
int blit_testRandomToRandomSVGAMultipleIterations(void *arg) {
static int SDLCALL blit_testRandomToRandomSVGAMultipleIterations(void *arg) {
const int width = 800;
const int height = 600;
const int blit_width = 15;