summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-04 22:38:19 +0200
committerwm4 <wm4@nowhere>2015-09-04 22:38:19 +0200
commita6694b7b96f94dd692b55e6db1a7740ddbe3fdee (patch)
treeb0d6ea9e22e6bb084e9b829c6a6f4e7e7dd2624d /DOCS/client_api_examples
parent23f6f3f50c4ff7a0fb5f294e1cdaa99d0b5f4e69 (diff)
downloadmpv-a6694b7b96f94dd692b55e6db1a7740ddbe3fdee.tar.bz2
mpv-a6694b7b96f94dd692b55e6db1a7740ddbe3fdee.tar.xz
DOCS/client_api_examples/sdl: make the window resizable
Diffstat (limited to 'DOCS/client_api_examples')
-rw-r--r--DOCS/client_api_examples/sdl/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/sdl/main.c b/DOCS/client_api_examples/sdl/main.c
index ae4b2b25b0..b3b5952668 100644
--- a/DOCS/client_api_examples/sdl/main.c
+++ b/DOCS/client_api_examples/sdl/main.c
@@ -52,7 +52,8 @@ int main(int argc, char *argv[])
SDL_Window *window =
SDL_CreateWindow("hi", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
- 1000, 500, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
+ 1000, 500, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
+ SDL_WINDOW_RESIZABLE);
if (!window)
die("failed to create SDL window");