This affected my android application. I don't know if it also affects desktop apps.
After upgrading android app from 3.9.0-stable to 3.10.0-beta2
- Some UI elements were 2 or 3 times the previous size
- Some UI elements did not appear at all (because their position was now outside the screen)
AI told me this:
// jME 3.10 divides the reported resolution (AppSettings/camera width+height) by the
// display density by default, even though DisplayScaleMode itself defaults to
// "disabled". Our GUI/HUD code assumes those are real framebuffer pixels like every previous
// jME version - request native-pixel mode to restore that 1:1 mapping.
Workaround:
After adding this call it worked OK as previously:
settings.setDisplayScaleMode(AppSettings.DISPLAY_SCALE_NATIVE_PIXELS);
The expected behaviour here is that the layout would work the same as in 3.9.0 without requiring code changes.
This affected my android application. I don't know if it also affects desktop apps.
After upgrading android app from 3.9.0-stable to 3.10.0-beta2
AI told me this:
Workaround:
After adding this call it worked OK as previously:
settings.setDisplayScaleMode(AppSettings.DISPLAY_SCALE_NATIVE_PIXELS);The expected behaviour here is that the layout would work the same as in 3.9.0 without requiring code changes.