Add t.window.icon to love.conf (resolves #668)

This commit is contained in:
Bart van Strien
2013-10-04 14:36:29 +02:00
parent 0e6786988e
commit 6aa150fe8b
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -383,6 +383,10 @@ function love.init()
display = c.window.display,
}), "Could not set window mode")
love.window.setTitle(c.window.title or c.title)
if c.window.icon then
assert(love.image, "If an icon is set in love.conf, love.image has to be loaded!")
love.window.setIcon(love.image.newImageData(c.window.icon))
end
end
-- Our first timestep, because window creation can take some time