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

Display resize #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Display resize #2

wants to merge 1 commit into from

Conversation

Aufricer
Copy link
Contributor

Add a functionality that looks if the Display was resized and thus ViewPort must be resized too

Add a functionality that looks if the Display was resized and thus ViewPort must be resized too
@NemesisMate
Copy link
Owner

@Aufricer I guess that it wasn't working fine before your change?. I would like to avoid a dependency on a lwjgl package. Normally, I would expect the GuiControlListener added in the construction to have his "reshape" called.

I've checked what I did for reptilianwars, where I heavily rely on this viewportpanel and it seems that I overrided the reshape method in the LegacyApplication and "setPreferredSize" of all root lemur containers.

This however, is a workaround that I agree should be solved somehow, but I think it should be something in Lemur rather calling lwlgl's Display.

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

Successfully merging this pull request may close these issues.

2 participants