| 1376 | } |
| 1377 | |
| 1378 | static void set_default_window_size(int width, int height, AVRational sar) |
| 1379 | { |
| 1380 | SDL_Rect rect; |
| 1381 | int max_width = screen_width ? screen_width : INT_MAX; |
| 1382 | int max_height = screen_height ? screen_height : INT_MAX; |
| 1383 | if (max_width == INT_MAX && max_height == INT_MAX) |
| 1384 | max_height = height; |
| 1385 | calculate_display_rect(&rect, 0, 0, max_width, max_height, width, height, sar); |
| 1386 | default_width = rect.w; |
| 1387 | default_height = rect.h; |
| 1388 | } |
| 1389 | |
| 1390 | static int video_open(VideoState *is) |
| 1391 | { |
no test coverage detected