aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_window.erl
diff options
context:
space:
mode:
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 80e5376..f44c1cd 100644
--- a/src/sdl_window.erl
+++ b/src/sdl_window.erl
@@ -39,6 +39,7 @@
-export([set_max_size/3]).
-export([set_min_size/3]).
-export([set_pos/3]).
+-export([set_size/3]).
create(Title, X, Y, W, H, Flags) ->
esdl2:create_window(Title, X, Y, W, H, Flags),
@@ -132,3 +133,6 @@ set_min_size(Window, W, H) ->
set_pos(Window, X, Y) ->
esdl2:set_window_position(Window, X, Y).
+
+set_size(Window, W, H) ->
+ esdl2:set_window_size(Window, W, H).