push - a resolution-handling library

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: push - a resolution-handling library

Post by D0NM »

Ulydev, thanks for a neat lib. :awesome:
I see, it is unfinished yet :3
Anyway it has saved a lot of my time.

I had a bug that the push shifts my images either horizontally or vertically
after the switch to the full screen mode and back.

But this thread has helped me to solve the problem. :huh:
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: push - a resolution-handling library

Post by Ulydev »

D0NM wrote:Ulydev, thanks for a neat lib. :awesome:
I see, it is unfinished yet :3
Anyway it has saved a lot of my time.

I had a bug that the push shifts my images either horizontally or vertically
after the switch to the full screen mode and back.

But this thread has helped me to solve the problem. :huh:
You're right about that, I started to notice it recently and I've fixed it in my personal builds. I'll be sure to push the fix on github when I have some time :awesome:
User avatar
Madrayken
Party member
Posts: 126
Joined: Sun May 04, 2014 4:21 pm
Location: Oakland CA
Contact:

Re: push - a resolution-handling library

Post by Madrayken »

D0NM wrote:Ulydev, thanks for a neat lib. :awesome:
I see, it is unfinished yet :3
Anyway it has saved a lot of my time.

I had a bug that the push shifts my images either horizontally or vertically
after the switch to the full screen mode and back.

But this thread has helped me to solve the problem. :huh:
Would you care to tell us how? I'm finding the same issue myself.
Discord: https://discord.gg/tYfHgXc
Bandcamp: https://madrayken.bandcamp.com/
Twitter: @Fluttermind
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: push - a resolution-handling library

Post by D0NM »

Madrayken wrote: Would you care to tell us how? I'm finding the same issue myself.
I was calling push:switchFullscreen()
w/o arguments. It should be working, but alas :joker:

Code: Select all

 push:switchFullscreen(WINDOW_WIDTH, WINDOW_HEIGHT)
adding the windows dimensions has solved the problem.

:3
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: push - a resolution-handling library

Post by D0NM »

ok. found another bug:

It discards the display number (if u use more than one monitors).
I use 1 monitor for coding, and the 2nd one for the game window and debug.

an ugly fix is:

Code: Select all

  local _, _, flags = love.window.getMode( )
  love.window.setMode( self._RWIDTH, self._RHEIGHT, {fullscreen = self._fullscreen, borderless = false, resizable = self._resizable, display = flags.display} )
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: push - a resolution-handling library

Post by D0NM »

Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: push - a resolution-handling library

Post by Ulydev »

Just closed 2 issues.

Thanks!
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: push - a resolution-handling library

Post by D0NM »

Ulydev wrote:Just closed 2 issues.
Thanks!
Thank you! Looking at your issues closing speed I gotta go coding faster :nyu:

now testing pixel_perfect option. :awesome:
everything is fine!

Well, Some time ago I had some multi-monitor issues. I just cannot remember it clearly. It might be love2d issue as well.
On getting to the problem again I'll open an issue.

PS Would u like to increase the lib version next time, too? :3
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: push - a resolution-handling library

Post by Ulydev »

D0NM wrote: Well, Some time ago I had some multi-monitor issues. I just cannot remember it clearly. It might be love2d issue as well.
On getting to the problem again I'll open an issue.

PS Would u like to increase the lib version next time, too? :3
Definitely yes.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: push - a resolution-handling library

Post by D0NM »

sent a pull request of the "stretched fill" mode

PS Also u use the shared code in calculateScale and initValues.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests