CompuServe Thread

#screen modes

4 messages in this thread
#44786From: Werner KazmierzakDec 14, 1994 4:16 PM
A simple question… Does anyone know how to mesure the aspect ratio of a pixel in a given screen mode (in OS 2.0+ only) ? Yes, I know, the user may change this with the v.size and h.size controls at his monitor, but let's assume these are in default position. But I want circles not to become ellipses, and squares rectangles, when the user changes the screen mode using my programs. – wkc – … via AP from Hamburg, Germany
#44795From: Eulogio (DJ) GarciaDec 14, 1994 11:07 PM
Werner, I believe that information is available through the GetDisplayInfoData function, with the DTAG_DISP tag. DisplayInfo.Resolution provides ticks-per-pixel as an X/Y tuple. DJ On AP from Queens, the thrill and excitement of the Big Apple Where the ice cream truck plays Helter Skelter …
#44798From: Werner KazmierzakDec 15, 1994 2:30 AM
Eulogio, thank you! I will just go read out DisplayInfo.Resolution field and see if this gives some clue. But, looking at the docs, I detected MonitorInfo.ViewResolution. I wonder what would be the difference to the above, and I think I will read this out as well. What I need is the true pixel aspect ratio, which is, for example, not the same for NTSC 640×200 and EURO36 640×200 screens, although they both have the same pixel rows/lines ratio. – wkc – … via AP from Hamburg, Germany
#44812From: Eulogio (DJ) GarciaDec 17, 1994 6:05 PM
Right, that's what I'm hoping that DisplayInfo.Resolution turns out to be. Good luck! DJ On AP from Queens, the thrill and excitement of the Big Apple Where the ice cream truck plays Helter Skelter …