Re: ddraw: Don't interpret end padding as dwCaps2 for x64.
On Sunday 22 May 2011 06:57:30 Dylan Smith wrote:
4 bytes of padding are at the end of DDSURFACEDESC when compiling for x64, because it contains a pointer field followed by an odd number of DWORD fields. Does DDSURFACEDESC have the same padding when using the microsoft headers and msvc?
On Sun, May 22, 2011 at 3:10 AM, Stefan Dösinger <stefandoesinger(a)gmx.at> wrote:
On Sunday 22 May 2011 06:57:30 Dylan Smith wrote:
4 bytes of padding are at the end of DDSURFACEDESC when compiling for x64, because it contains a pointer field followed by an odd number of DWORD fields. Does DDSURFACEDESC have the same padding when using the microsoft headers and msvc?
I tried and got the same results for x64: offsetof(DDSURFACEDESC, ddsCaps) = 112 offsetof(DDSURFACEDESC, ddsCaps) + sizeof(DDSCAPS) = 116 sizeof(DDSURFACEDESC) = 120
participants (2)
-
Dylan Smith -
Stefan Dösinger