-
Notifications
You must be signed in to change notification settings - Fork 25
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
Scene width and height change in DynamicCompositeEntity #220
Comments
This cannot be reproduces on my Mac. Is it possibly related to #208, which makes it a Windows-only bug. Lets test this again after an update to JavaFX 17. |
Anyone running Windows that wants to test this one, would be much appreciated. |
Found the place the multiplication happens. It looks like you need to work with the Pane object and not with the Scene object of the abstract StaticScene. |
Thanks @RyanAelen ! If you have the time, you're welcome to implement a fix. :-) |
Using environment variable / java property |
I tried setting the property in code (using System.setProperty()) in the YaegerGame class but this had no effect. I also tried |
Interesting, I didn't know about this setting. I'll try to figure out how to set this property from code. It should be possible... I guess. |
The post in the link seems to state an example that solves the problem. Main thing seems to set the property before calling the run-method. Could you (@Jaapapa ) perhaps test this on windows? https://stackoverflow.com/questions/67264613/system-setpropertyprism-allowhidpi-false-does-not-work |
I couldnt get it to work. Tried all the props and also creating a seperate launcher class like so:
|
I'll leave this issue as is for now. Maybe someone will find a solution for this in the future. |
When parsing the scene to a DynamicCompositeEntity the width and height change to a value multiplied by 1.25.
The initial size of the game:
the size im getting in the DynamicCompositeEntity
The text was updated successfully, but these errors were encountered: