aboutsummaryrefslogtreecommitdiffstats
path: root/src/esdl2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-04-03 19:13:04 +0200
committerLoïc Hoguin <[email protected]>2014-04-03 19:21:31 +0200
commit3026b4860fd3a1436a59bf2d26792fbbf6b60917 (patch)
tree8b8e3b8aafcc3968ee8031293fa63f65fbac4f66 /src/esdl2.erl
parentafc06a3ef6689bd86780c3df065d3ec8efa4bce8 (diff)
downloadesdl2-3026b4860fd3a1436a59bf2d26792fbbf6b60917.tar.gz
esdl2-3026b4860fd3a1436a59bf2d26792fbbf6b60917.tar.bz2
esdl2-3026b4860fd3a1436a59bf2d26792fbbf6b60917.zip
Add sdl_window:set_icon/2
The surface needs to be kept around and not GC otherwise it crashes.
Diffstat (limited to 'src/esdl2.erl')
-rw-r--r--src/esdl2.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/esdl2.erl b/src/esdl2.erl
index 4abc20b..e383e58 100644
--- a/src/esdl2.erl
+++ b/src/esdl2.erl
@@ -92,6 +92,7 @@
-export([set_window_brightness/2]).
-export([set_window_fullscreen/2]).
-export([set_window_grab/2]).
+-export([set_window_icon/2]).
%% @todo We probably want to accept an env variable or somthing for the location.
-on_load(on_load/0).
@@ -297,3 +298,6 @@ set_window_fullscreen(_, _) ->
set_window_grab(_, _) ->
erlang:nif_error({not_loaded, ?MODULE}).
+
+set_window_icon(_, _) ->
+ erlang:nif_error({not_loaded, ?MODULE}).