love.resize

Available since LÖVE 0.9.0
This callback is not supported in earlier versions.

Callback function triggered when window is resized.

Function

Synopsis

love.resize( w, h )

Arguments

number w
The new width.
number h
The new height.

Returns

Nothing.

Example

function love.resize(w, h)
  print(("Window resized to width: %d and height: %d."):format(w, h))
end

See Also

Other Languages