Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: ships displayed with wrong aspect ration on a 1680 x 1050 display  (Read 6918 times)

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24118
    • View Profile
Re: ships displayed with wrong aspect ration on a 1680 x 1050 display
« Reply #15 on: February 03, 2017, 09:48:24 AM »

So, question: in the resolution dropdown, you're seeing/selecting 1920x1080 as the resolution, right?

Correct.

Ok, excellent - added a workaround where if it detects the aspect ratio is above 2.5, it'll use the aspect ratio of the highest available resolution with an aspect ratio below 2.5. I think that should cover it.

Interesting about the terminology - that might be the source of the confusion indeed, as the javadoc for that function uses the terms "screen" and "display" interchangeably.


Yes, I stole some code from stack overflow (http://stackoverflow.com/questions/1936547/java-fullscreen-over-multiple-monitors) and it lists modes for both displays. Both are 1920x1080, and one is offset by 1920 in the x direction, as expected. An excerpt:

1920.0,0.0 1920.0x1080.0 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0
0.0,0.0 1920.0x1080.0 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0

Cool - was actually looking at using GraphicsEnvironment for the workaround. Good to keep in mind in case the above workaround doesn't quite cut it for some reason.
Logged

db48x

  • Ensign
  • *
  • Posts: 38
    • View Profile
Re: ships displayed with wrong aspect ration on a 1680 x 1050 display
« Reply #16 on: February 04, 2017, 12:09:26 AM »

Oh, you're right; I did skip a step. Calling java.awt.Toolkit.getScreenSize() does indeed give me a width of 3840 and a height of 1920.
Logged
Pages: 1 [2]