test/testoverlay2.c
changeset 11834 b359333bdc52
parent 11811 5d94cb6b24d3
child 12503 806492103856
equal deleted inserted replaced
11833:ef7abee0f838 11834:b359333bdc52
   252     }
   252     }
   253 
   253 
   254     while (argc > 1) {
   254     while (argc > 1) {
   255         if (strcmp(argv[1], "-fps") == 0) {
   255         if (strcmp(argv[1], "-fps") == 0) {
   256             if (argv[2]) {
   256             if (argv[2]) {
   257                 fps = atoi(argv[2]);
   257                 fps = SDL_atoi(argv[2]);
   258                 if (fps == 0) {
   258                 if (fps == 0) {
   259                     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
   259                     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
   260                             "The -fps option requires an argument [from 1 to 1000], default is 12.\n");
   260                             "The -fps option requires an argument [from 1 to 1000], default is 12.\n");
   261                     quit(10);
   261                     quit(10);
   262                 }
   262                 }
   276             nodelay = 1;
   276             nodelay = 1;
   277             argv += 1;
   277             argv += 1;
   278             argc -= 1;
   278             argc -= 1;
   279         } else if (strcmp(argv[1], "-scale") == 0) {
   279         } else if (strcmp(argv[1], "-scale") == 0) {
   280             if (argv[2]) {
   280             if (argv[2]) {
   281                 scale = atoi(argv[2]);
   281                 scale = SDL_atoi(argv[2]);
   282                 if (scale == 0) {
   282                 if (scale == 0) {
   283                     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
   283                     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
   284                             "The -scale option requires an argument [from 1 to 50], default is 5.\n");
   284                             "The -scale option requires an argument [from 1 to 50], default is 5.\n");
   285                     quit(10);
   285                     quit(10);
   286                 }
   286                 }