flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > win64a.inc

Author
Thread Post new topic Reply to topic
murder



Joined: 03 Nov 2011
Posts: 10
murder
In "win64a.inc" we can see string "include 'equates/gdi32.inc'", but BITMAP structure contains a pointer - "bmBits", so for 64-bit need to add "gdi64.inc".

_________________
sorry for my english Embarassed
Post 14 Mar 2015, 07:07
View user's profile Send private message Reply with quote
murder



Joined: 03 Nov 2011
Posts: 10
murder
Also pointers must be 8-byte aligned.

So right definition is
Code:
struct BITMAP
  bmType       dd ?
  bmWidth      dd ?
  bmHeight     dd ?
  bmWidthBytes dd ?
  bmPlanes     dw ?
  bmBitsPixel  dw ?
               dd ?
  bmBits       dq ?
ends    
[/code]
Post 14 Mar 2015, 07:36
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.