hushaojie04 / libgdx

Automatically exported from code.google.com/p/libgdx
0 stars 0 forks source link

Mac OS X 10.8.1 full screen mode is off-center #1131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use the default project created by the LibGDX Project Setup GUI (my-gdx-game)
2. Set the app configuration to run in full screen:
        cfg.width = 1024;
        cfg.height = 768;
        cfg.fullscreen = true;
3. Run the desktop project. 

Note that the fullscreen display is off-center. This does not happen on 
Windows. By "off-center" I mean that the image is aligned to the left of the 
monitor, and there is a "black border" on the right of the screen (I cannot 
move the cursor to such black border, though.) Further, a bit of the left part 
of the image is not visible. Taking a screenshot with command+shift+3 shows the 
full image with no black border, as if everything was fine. However, the black 
border is there, and the image is sliced on its left side. For further testing, 
I've run NobleMaster Tropical Stormfront, and it goes into fullscreen mode very 
nicely, with no black border. What could be the issue here?

I'm using the latest nightlies. I'm on a Mac mini 2.5 GHz Intel Core i5, OS X 
version 10.8.1. Java 6/7 both show this behaviour.

Original issue reported on code.google.com by hael...@gmail.com on 16 Nov 2012 at 3:14

GoogleCodeExporter commented 9 years ago
I'm attaching two images;

"Screen Shot 2012-11-16 at 10.48.44 AM" is the screenshot captured by 
command+shift+3, and it's the way the program should be displayed. However, 
what I'm really seeing is what ScreenShot.PNG shows.

Original comment by hael...@gmail.com on 16 Nov 2012 at 3:31

Attachments:

GoogleCodeExporter commented 9 years ago
Hello again. I've just run the test "WindowCreationTest" from LWJGL, and if I 
select the display mode 1024 x 768 x 32 @75Hz, and then switch to fullscreen, I 
see the problem reported above. 800x600, though, scales fine to fullscreen.  I 
tried with several versions of LWJGL, including the latest nightlies, and all 
of them have problems going to fullscreen at 1024x768 (btw, my display 
resolution is 1680x1050.)

This might be related to Mac OS X. However, a game I developed with SDL goes 
into fullscreen mode perfectly fine at 1024x768.

Therefore, it has to be an LWJGL thing. But I might be wrong. I'd like the game 
I've developed with LibGDX to be displayed properly when going into fullscreen 
mode on Mac OS X. Any thoughts on this? Thanks.

Original comment by hael...@gmail.com on 18 Nov 2012 at 3:06

GoogleCodeExporter commented 9 years ago
The scaling should be done by either the videocard (which would scale the image 
to fit the native resolution of your monitor) or by the monitor itself.
In general you would like to let your videocard handle this for a large 
improvement in image quality.

Can you tell me which method you use, which videocard you have and if this 
persists if you switch to the other method and/or update your videocard drivers?

Original comment by seraphim...@gmail.com on 22 Nov 2012 at 10:41

GoogleCodeExporter commented 9 years ago
Oh, thank you very much for taking a look at this. Please, close this issue. 
The problem was magically solved by updating OS X. Thanks.

Original comment by hael...@gmail.com on 22 Nov 2012 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by badlogicgames on 10 Jan 2013 at 1:29