Issue with changing screen res in windows aero = black screen.

I’m trying to release a new version of my game and I’m getting a few issues. A knowledgeable user emailed me to say

“The new version will not work under Windows 7 64 bit (not sure about 32 bit) with the Aero theme – It distorts the 256 color palette or goes to a black screen. Found a way to get around it by changing the Desktop Theme to windows Basic (which turns off Aero and it’s effects)”

Can I get round this in code as it seems a bit much to expect users to have to do this?

I have a bat file that runs the program using

java -jar -Dsun.java2d.noddraw=true AlienSwarm.jar

and this seemed to fix things for me but obviously not for him.

Game is here if it helps.

Cheers Mike

Drivers.

Cas :slight_smile:

So people need to have the latest drivers to achieve 640x480 resolution gaming? ???
Mike

No, they just need drivers that actually do what they’re supposed to do. Which usually means not the ones that come installed on the PC by the OEM which are invariably minimally tested and broken and rushed out the door.

Cas :slight_smile:

I asked one of my more knowledgeable users about the drivers on his PS and he replied:

I’d like to say I fully understand the issue (or the answer) but I don’t.

Mike

PS sorry for entering the centre quote as code but I can’t see how to indent that part or change it’s colour to make it clear it’s a separate piece.

I can confirm that it does not work for me (win 7) as well.

It is most definitely a product of how you are doing your rendering… having a look at your code it seems that you are performing unnecessary off screen image updates when you can just use the Frame’s BufferStrategy to do that for you. It will most likely be the cause of the incompatibility with fullscreen mode.

I would also suggest moving the code that updates the image out side of the AlienSwarm Paint method and just update the BufferStrategy’s graphics object and then call show() on the bufferstrategy once you have finished rendering a tick.

Thanks for looking. Did you try clicking the bat file or the jar? The bat file normally gets round the black screen issue but just not for aero.

yes both did not work for me