Issue with Fullscreen mode

Issue #588 invalid
Anonymous created an issue

I'm running LOVE 0.8.0 on Ubuntu Linux, on a laptop with an nVidia GeForce card, max resolution 1600x900. I tried using the fullscreen mode with lower resolutions. Using 1024x768 I got it working, but when I quit the desktop wouldn't return to its native resolution. When I tried using setMode(1600, 900, true), it worked, but after quitting the desktop was 1024x768 again! I don't know why would it happen.

My current workaround is the following:

H_RES = <desired width>
V_RES = <desired height>

function love.load()

    love.graphics.setMode(0, 0)
    original_h_res, original_v_res = love.graphics.getMode()

    --Load video mode   
    love.graphics.setMode(H_RES, V_RES, true)

        ...
end

function love.quit()
    love.graphics.setMode(original_h_res, original_v_res)
end

It's not especially nice, but it works. The guys in IRC suggested me to signal the problem anyway.

Comments (5)

  1. Alex Szpakowski

    It's almost certain that this is either an issue with your window manager, or SDL's code which interacts with it (LÖVE uses SDL for windowing.)

    Unfortunately fixing either of those situations is out of the scope of LÖVE's code. It may have been fixed with SDL 2.0 (which LÖVE 0.9.0 uses). If not, there's already a bug report by someone else on SDL's issue tracker. If you still have this issue with 0.9.0, you should post there: https://bugzilla.libsdl.org/show_bug.cgi?id=2093

  2. Log in to comment