Clarified that testffmpeg will resize the window to the video size
This commit is contained in:
parent
4368f70ff9
commit
efa9a45048
1 changed files with 2 additions and 5 deletions
|
@ -55,10 +55,6 @@
|
||||||
|
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
|
|
||||||
#define WINDOW_WIDTH 640
|
|
||||||
#define WINDOW_HEIGHT 480
|
|
||||||
|
|
||||||
|
|
||||||
static SDL_Texture *sprite;
|
static SDL_Texture *sprite;
|
||||||
static SDL_FRect *positions;
|
static SDL_FRect *positions;
|
||||||
static SDL_FRect *velocities;
|
static SDL_FRect *velocities;
|
||||||
|
@ -108,7 +104,8 @@ static SDL_bool CreateWindowAndRenderer(Uint32 window_flags, const char *driver)
|
||||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
|
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);
|
||||||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
|
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
|
||||||
|
|
||||||
if (SDL_CreateWindowAndRenderer(WINDOW_WIDTH, WINDOW_HEIGHT, window_flags, &window, &renderer) < 0) {
|
/* The window will be resized to the video size when it's loaded, in OpenVideoStream() */
|
||||||
|
if (SDL_CreateWindowAndRenderer(320, 200, window_flags, &window, &renderer) < 0) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue