Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game rendered in the bottom left corner on retina displays #2

Open
peterhellberg opened this issue Mar 7, 2018 · 2 comments
Open

Comments

@peterhellberg
Copy link

When running the game on a retina MacBook this is the result:

2048-retina-rendering-bug

@peterhellberg
Copy link
Author

Also you can’t press the text input or button widgets on the game over screen at where they are rendered, instead you have to find where they should be rendered and press the mouse button there (in this case in the upper right hand corner of the game board)

screen shot 2018-03-07 at 19 13 25

@sg3des
Copy link
Owner

sg3des commented Mar 7, 2018

oh, thx, but i don`t know how fix this without same device...

https://github.com/sg3des/2048/blob/master/2048-window.go#L60 - if here multiple width and height on 2 - gfx.Viewport(0, 0, int32(w*2), int32(h*2)), i think this will solve the problem... but should be a normal method.

could you check this project - https://github.com/loov/zombies-on-ice? thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants