Re: [fpc-pascal] PTCGraph resolution detection

2024-03-22 Thread James Richters via fpc-pascal
I found another way to get the screen resolution in Windows that is consistent between 32bit and 64bit programs using GetSystemMetrics. uses Windows; var ScreenWidth, ScreenHeight: Integer; begin ScreenWidth := GetSystemMetrics(SM_CXSCREEN); ScreenHeight :=

Re: [fpc-pascal] PTCGraph resolution detection

2024-03-20 Thread James Richters via fpc-pascal
>>No idea, but it does sound like a Windows issue to me. >>Or a video card driver issue? >>The API is the same. The mechanism for obtaining the list of resolutions is >>also the same. >>Perhaps Microsoft uses a fake DirectDraw shim in 64-bit Windows that presents >>a fake resolutions list,

Re: [fpc-pascal] PTCGraph resolution detection

2024-03-19 Thread Nikolay Nikolov via fpc-pascal
On 3/19/24 18:15, James Richters via fpc-pascal wrote: I am trying to compile a program that uses PTCGraph for Windows 64 bit, and it’s not behaving the same as it does on Win32. When I compile it for Win32, it is correctly detecting my monitor resolutionI have a vertical monitor with a

[fpc-pascal] PTCGraph resolution detection

2024-03-19 Thread James Richters via fpc-pascal
I am trying to compile a program that uses PTCGraph for Windows 64 bit, and it's not behaving the same as it does on Win32. When I compile it for Win32, it is correctly detecting my monitor resolution I have a vertical monitor with a resolution of 1080x2560 When I run the Win32 program I