PDA

View Full Version : Upside Down screen problem


Phil Steinmeyer
11-04-2006, 10:37 AM
Several dozen folks have beta tested my game, which uses new low-level graphics code I wrote, that uses CreateDIBSection and BitBlt (i.e. no DirectX).

I just got a complaint from one user that the screen consistently displays upside down for him.

Of course, it's trivial enough for me to invert the off-screen bitmap before I blit it to the screen, but I need to know why his screen is upside down and all others are not. My suspicion is there is some flag somewhere in the setup stuff I should be checking or setting or something to either know the handful of cases where I will need to manually invert the bitmap, or that I can set to tell the video driver to do the inversion itself (i.e. to act like the other 98% of the cards out there).

FWIW, it appears his video is from an Intel 82945G Express Chipset, driver version 6.14.0010.4396. (driver about a year old).

Anybody got any leads on how I can automatically detect for this case and/or otherwise handle it?

Phil Steinmeyer
11-04-2006, 10:39 AM
Hmm, it appears this is an Intel Extreme issue

http://www.flyordie.com/games/help/support/upside.html

The linked article describes how to fix it from the user's end. I want to fix it from my game's end.

Tertsi
11-04-2006, 11:07 AM
The hard way:
Check the screen's pixels and if it seems upside down, minimize the window and simulate user input as if he was disabling the rotation manually.

You better make sure he has intel extreme graphics first though.

Phil Steinmeyer
11-04-2006, 11:37 AM
I think I found the right hook - in EnumDisplaySettings, the property dmDisplayOrientation seems to be what I'm looking for. Now I need my user to test it and tell me if the corresponding fix I put in worked.