Lines Matching defs:ncolors
315 const char *expectedError1 = "Parameter 'ncolors' is invalid";
320 int ncolors;
328 ncolors = 1;
332 ncolors = 2;
336 ncolors = SDLTest_RandomIntegerInRange(8, 16);
340 result = SDL_AllocPalette(ncolors);
341 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors);
344 SDLTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %u", ncolors, result->ncolors);
345 if (result->ncolors > 0) {
348 for(i = 0; i < result->ncolors; i++) {
365 for (ncolors = 0; ncolors > -3; ncolors--) {
368 result = SDL_AllocPalette(ncolors);
369 SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors);