love.graphics.maximize doesn't report changed size immediately

Issue #1221 resolved
Pedro Gimeno Fortea
created an issue

love.graphics.getDimensions() doesn't return the new size immediately after calling love.window.maximize(). Test case:

function love.load()
  print("Before:", love.graphics.getDimensions())
  love.window.maximize()
  print("After:", love.graphics.getDimensions())
end

function love.resize(w, h)
  print("love.resize:", w, h, love.graphics.getDimensions())
end

Output in my system:

Before:   800   600
After:   800   600
love.resize:   1278   992   1278   992

I'm not sure if it will be fixable at all. Some systems may treat this as an asynchronous operation.

Comments (1)

  1. Log in to comment