Free Pascal => Windows => Topic started by: Key-Real on April 29, 2021, 06:34:12 pm
Title: Direct Draw from JEDI does not work under 64bit
Post by: Key-Real on April 29, 2021, 06:34:12 pm
Hi, I have DirectDraw Headers from JEDI. They work with 32bit compilation, but not with 64bit(It compiles but if run: CreateSurface fails).
I have setup a test: http://www.sistavip.com/pub/ddrawtest.zip
Please Help
Title: Re: Direct Draw from JEDI does not work under 64bit
Post by: Key-Real on April 29, 2021, 07:50:58 pm
If I use original Delphi Headers it works on Delphi 32&64bit. But on FPC only 32bit, not 64bit(Same Problem as by JEDI Headers)
my Test: http://www.sistavip.com/pub/ddraw_delphiOK.zip
Title: Re: Direct Draw from JEDI does not work under 64bit
Post by: engkin on April 29, 2021, 08:06:23 pm
Quick test shows that your SizeOf( TDDSURFACEDESC ) is wrong. It should be 120 bytes on Win64 that is based on the one in unit p_ddraw (included with FPC).