gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
304 stars 99 forks source link

On windows, java2d displays are broken on second screen #3671

Closed lesquoyb closed 1 year ago

lesquoyb commented 1 year ago

Describe the bug When I run gama on my secondary screen that has a different scaling ratio than my primary screen, all the java2d displays are broken: image My guess is that the primary monitor scaling ratio is applied. When I set both ratios to be the same everything works correctly

To Reproduce Steps to reproduce the behavior:

  1. move gama to a secondary screen with a different scaling ratio than the primary
  2. run any model that has a java2d display
  3. See error

Desktop (please complete the following information):

AlexisDrogoul commented 1 year ago

Unsurprisingly, I can't reproduce on in my dual monitor / dual resolution / dual zoom setup...

lesquoyb commented 1 year ago

The trick mentioned in https://github.com/gama-platform/gama/issues/3673#issuecomment-1475188739 does solve this problem, beware to set it to system and not system (enhanced) as I wrongfully stated in the original comment (edited now), else you'll break 3d displays: image Closing this one, will close #3673 when the trrick is properly documented