fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.22k stars 1.23k forks source link

Display Glitch #90

Open trickypr opened 6 years ago

trickypr commented 6 years ago

When I launch the game it only takes up a quarter of the given window. If you try to resize it crashes. I am running MacOS 10.13.2, Python 3.6.4 and pyglet 1.3.0. Game Image Terminal output (after crash) My mac is plenty powerful enough.

progval commented 6 years ago

Hi! I think you should report this to pyglet's bugtracker, this does not seem to be directly related to this repo's code.

trickypr commented 6 years ago

Thanks, I will do that!

trickypr commented 6 years ago

I am reopening this issue due to the response from pyglet saying that it is the game's code. It is due to Retina Display Scaling on OS X. Apparently, this code is responsible for it:

glViewport(0, 0, width, height)

They are working on a patch in this issue.

As for the resizing issue, they don't know. My issue is available here.

I hope this is helpful!

OneSharpAce commented 5 years ago

I have submitted a pull request that resolves the issue. Pull #94