hundredrabbits / Dotgrid

Minimalist Vector Tool
https://hundredrabbits.itch.io/dotgrid
Other
1.04k stars 75 forks source link

weird fullscreen bug on macOS 10.13.6 #53

Closed wakest closed 5 years ago

wakest commented 5 years ago

this is fullscreen split with Messages.app

screen shot 2019-01-14 at 7 17 02 pm

image looks like this when fullscreen not shared with another app

screen shot 2019-01-14 at 7 21 55 pm
neauoire commented 5 years ago

Can you explain to me what the bug is exactly? It crops the image? Is it just related to the mirror?

wakest commented 5 years ago

after looking into it again it looks like it has to do with window size. so the unexpected behavior is that if you have an image like this:

screen shot 2019-01-15 at 12 40 08 pm

and then you enter fullscreen or chance the size of the window, you suddenly have a totally different image. this is the same image as above but fullscreen:

screen shot 2019-01-15 at 12 40 23 pm

I guess this is just because how the mirroring is done? but that doesn't really make sense since its just mirroring the image down the center line.

neauoire commented 5 years ago

Understood! On it :)

neauoire commented 5 years ago

Trying to fix this I understood why I didn't "fix" this before. The issue is that I don't want to translate the position of vertices for the mirror. Everything is top-left aligned, and if I was to make it follow the mirror line, it would mean that:

wakest commented 5 years ago

what if when you turned on mirror, it "locked" the image size to the window size? then when you went full screen, what you would actually be doing is keeping the canvas size the same but adding a buffer around it.

neauoire commented 5 years ago

That is.. pretty smart!!!! Okay, I will implement that :)

neauoire commented 5 years ago

Duplicate of #50