How to check if aspect ratio auto adjustment is enabled in monitor

Posted by kFk on Stack Overflow See other posts from Stack Overflow or by kFk
Published on 2010-05-20T15:15:10Z Indexed on 2010/05/21 8:30 UTC
Read the original article Hit count: 196

Game application is written in C++ and uses DirectX 8.

I am getting a maximum monitor resolution to calculate it's aspect ratio. Then I use this value to fix game rendering (scale and set clipping to receive normal 4:3 image with black borders on wide screen monitors).

How can I check if monitor is using aspect ratio auto adjustment now? Because my scaling plus monitor scaling makes resulting image overscaled.

Thanks

EDIT: I saw correct different monitor resolution handling with or without aspect ratio auto adjustment in "Royal Envoy" casual game. But don't know how do they do this.

© Stack Overflow or respective owner

Related posts about c++

Related posts about game-development