| 1025 | |
| 1026 | |
| 1027 | static SDL_ScaleMode SDL_GetScaleMode(void) |
| 1028 | { |
| 1029 | const char *hint = SDL_GetHint(SDL_HINT_RENDER_SCALE_QUALITY); |
| 1030 | |
| 1031 | if (!hint || SDL_strcasecmp(hint, "nearest") == 0) { |
| 1032 | return SDL_ScaleModeNearest; |
| 1033 | } else if (SDL_strcasecmp(hint, "linear") == 0) { |
| 1034 | return SDL_ScaleModeLinear; |
| 1035 | } else if (SDL_strcasecmp(hint, "best") == 0) { |
| 1036 | return SDL_ScaleModeBest; |
| 1037 | } else { |
| 1038 | return (SDL_ScaleMode)SDL_atoi(hint); |
| 1039 | } |
| 1040 | } |
| 1041 | |
| 1042 | SDL_Texture * |
| 1043 | SDL_CreateTexture(SDL_Renderer * renderer, Uint32 format, int access, int w, int h) |
no test coverage detected