Re: [AD] Proposed changes for Allegro 5 (6?) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Lo'oRiS il Kabukimono wrote:
> > user's code. Btw, 32bpp == long, not int.
>
> not true.
> it depends on the platform.
> for me sizeof(int)==sizeof(long)==32
No, sorry, 32bpp pixels are stored as long on all platforms. It might be
true that int also works on some platforms, but not generally. This can
be seen from the definition of BYTES_PER_PIXEL() (around line 300 of
ainline.h), and BYTES_PER_PIXEL() is what create_bitmap() uses to
determine the size (line 848 of graphics.c).
--
Sven Sandberg svsa1977@xxxxxxxxxx home.student.uu.se/svsa1977