Correctly resizing window on HD monitor?

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.
bridgs
Prole
Posts: 6
Joined: Wed Jul 24, 2019 6:34 pm

Re: Correctly resizing window on HD monitor?

Post by bridgs »

Thank you for that context. It sounds like there's no action to be taken on this so I'll close the bug ticket I opened. If anyone finds with thread in the future, I'll update it if I see the issue resolved or see a reliable workaround.
User avatar
Sasha264
Party member
Posts: 131
Joined: Mon Sep 08, 2014 7:57 am

Re: Correctly resizing window on HD monitor?

Post by Sasha264 »

updateMode will destroy and recreate the entire window and OpenGL context
Thanks, learned something new ^_^

About workaround:
Since this code returnes index of current display:

Code: Select all

local _, _, display = love.window.getPosition()
You can monitor when it changes, and then call updateWindow(...) to "attune" :crazy: your game window to current monitor...

Well, on my windows multi-monitor config it changes display index when the center of the window is moved to another screen. With macos I only have single monitor config. Maybe someone else can test this case :monocle:
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 213 guests