From 5a3818976a75fbbf67fed23e979a1b09fbd7b356 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Sun, 9 Sep 2018 18:24:33 +0200 Subject: [PATCH] Added SetIcon to Display. --- allegro5/display.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/allegro5/display.go b/allegro5/display.go index 8c92f21..0f8b1ec 100644 --- a/allegro5/display.go +++ b/allegro5/display.go @@ -74,6 +74,10 @@ func (d *Display) SetAsTarget() { C.al_set_target_backbuffer(d.display) } +func (d *Display) SetIcon(i *Bitmap) { + C.al_set_display_icon(d.display, i.bitmap) +} + func (d *Display) SetMousePosition(x, y int) { C.al_set_mouse_xy(d.display, C.int(x), C.int(y)) }