From 41e31ebb2ecf97892432402fa91e83cbb1955792 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 20 Jul 2017 01:05:43 -0400 Subject: [PATCH] resize events --- main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.lua b/main.lua index 4e540e6..076d6a4 100644 --- a/main.lua +++ b/main.lua @@ -56,6 +56,10 @@ function love.load() end +function love.resize(w, h) + width, height = love.graphics.getDimensions() +end + function draw_attractor() local random_max = width / 2