Code: Select all
love.window.setMode(0, 0)
It doesn't have to be purely love2D. I could use other lua techniques or modules/libraries.
Thanks for your time!
Code: Select all
love.window.setMode(0, 0)
This also includes the taskbar's area, if i'm not mistaken. (At least it does on multi-monitor setups and/or if you have the taskbar set to auto-vanish)Nixola wrote:You could also just use [wiki]love.window.getDesktopDimensions[/wiki]
Huh? What do you mean? If you perform [wiki]love.window.maximize[/wiki] your screen should take all the available space. [wiki]love.resize[/wiki] should be called with the new width and height, and [wiki]love.graphics.getDimensions[/wiki] should return appropiate dimensions. This is also true for resizable windows that are maximized by the user. And even works with borderless windows. Of course you have to call [wiki]love.graphics.getDimensions[/wiki] after [wiki]love.window.maximize[/wiki] and currently there is no way to restore to an unmaximized state through codeVectorNormal wrote:when in windowed mode if you maximize the screen, the reported size of the window does not change. This is because resizing and maximizing are completely separate concepts
VectorNormal wrote:@MadByte I'm making a casual puzzle game. There's no reason a player should feel like their entire computer experience is being overtaken by a casual game that you just fire up for a few minutes to play a few levels.
So you don't want to burden users by covering the entire screen, just the entire screen minus the taskbar. Makes sense.VectorNormal wrote:Is there any way to get the dimensions of the desktop minus the size of the taskbar? ...
VectorNormal wrote:Worth noting is that when in windowed mode if you maximize the screen, the reported size of the window does not change. This is because resizing and maximizing are completely separate concepts.
Worth noting that the love.resize callback won't be called if maximize succeeds, as per wiki documentation that +7 linked. Though that shouldn't affect löve setting the new resolution internally, that's retrievable by lg.getDimensions; that i haven't tested though.Positive07 wrote:Huh? What do you mean? If you perform love.window.maximize your screen should take all the available space. love.resize should be called with the new width and height, and love.graphics.getDimensions should return appropiate dimensions. This is also true for resizable windows that are maximized by the user. And even works with borderless windows. Of course you have to call love.graphics.getDimensions after love.window.maximize and currently there is no way to restore to an unmaximized state through code
Users browsing this forum: Bing [Bot] and 3 guests