Wrong resize dimensions when maximizing

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
scoobyff666
Prole
Posts: 16
Joined: Fri Sep 16, 2016 5:21 am

Wrong resize dimensions when maximizing

Post by scoobyff666 »

A little while ago, I don't know exactly what happened, maybe an update of something on my machine, but love.resize started receiving wrong wrong window dimensions when maximizing or restoring the window. It works correctly when I resize by dragging the window borders, but when I maximize I get the values from before maximizing and when I restore I get values of the maximized window, so my game is always rendering wrong. For example:

Code: Select all

function love.resize(w, h)
  print(w, h)
end
* When I maximize this prints something like 800x600, the windowed, before maximization size
* When I restore it prints the maximized size 1360x696

Does anyone have the same problem or have an idea of what's happening and what I can do about it?

I'm on arch linux using gnome. I tested on openbox to see if it was a problem with gnome and the same problem happened there. I also tried gnome with both wayland and xorg.
scoobyff666
Prole
Posts: 16
Joined: Fri Sep 16, 2016 5:21 am

Re: Wrong resize dimensions when maximizing

Post by scoobyff666 »

I think some lib love depends on is probably causing it. I tried downloading the love AppImage, and with the AppImage the problem does not happen. I don't know what are the love2d dependencies, but I'll try to check
User avatar
Hugues Ross
Party member
Posts: 120
Joined: Fri Oct 22, 2021 9:18 pm
Location: Quebec
Contact:

Re: Wrong resize dimensions when maximizing

Post by Hugues Ross »

Ah, yeah I've seen that recently. My guess is probably a bug in SDL. It's annoying, but these things usually get fixed pretty quickly
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests