aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_window.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-04-03 19:36:03 +0200
committerLoïc Hoguin <[email protected]>2014-04-03 19:36:03 +0200
commita538eb1deb61edd4c166dcba1dfd3dcc57663fc9 (patch)
tree6244fdfd30e881d399cc747028942f9c4358dc38 /src/sdl_window.erl
parent3026b4860fd3a1436a59bf2d26792fbbf6b60917 (diff)
downloadesdl2-a538eb1deb61edd4c166dcba1dfd3dcc57663fc9.tar.gz
esdl2-a538eb1deb61edd4c166dcba1dfd3dcc57663fc9.tar.bz2
esdl2-a538eb1deb61edd4c166dcba1dfd3dcc57663fc9.zip
Add sdl_window:set_max_size/3
Diffstat (limited to 'src/sdl_window.erl')
-rw-r--r--src/sdl_window.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdl_window.erl b/src/sdl_window.erl
index 0232fc0..13757b1 100644
--- a/src/sdl_window.erl
+++ b/src/sdl_window.erl
@@ -36,6 +36,7 @@
-export([set_fullscreen/2]).
-export([grab_input/2]).
-export([set_icon/2]).
+-export([set_max_size/3]).
create(Title, X, Y, W, H, Flags) ->
esdl2:create_window(Title, X, Y, W, H, Flags),
@@ -120,3 +121,6 @@ grab_input(Window, Grab) ->
set_icon(Window, Surface) ->
esdl2:set_window_icon(Window, Surface),
receive {'_nif_thread_ret_', Ret} -> Ret end.
+
+set_max_size(Window, W, H) ->
+ esdl2:set_window_maximum_size(Window, W, H).